„chromium.yml“ ändern

This commit is contained in:
olli 2022-07-14 11:58:21 +02:00
parent 94edc117fc
commit 8dbafb32d6

View File

@ -11,6 +11,8 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
owner: root
group: root
mode: '0755' mode: '0755'
with_items: with_items:
- "/etc/chromium/policies/managed" - "/etc/chromium/policies/managed"
@ -21,18 +23,15 @@
- name: Chromium managed policy - name: Chromium managed policy
ansible.builtin.copy: ansible.builtin.copy:
src: chromium-managed.json src: chromium-managed.json
dest: /var/lib/flatpak/app/com.github.Eloston.UngoogledChromium/x86_64/stable/active/files/chromium/policies/policies/managed/chrome.json dest: "{{ item }}"
owner: root owner: root
group: root group: root
mode: '0444' mode: '0444'
follow: yes follow: yes
backup: yes backup: yes
with_items:
# - name: Create a directory if it does not exist - "/etc/chromium/policies/managed/chrome.json"
# ansible.builtin.file: - "/var/lib/flatpak/app/com.github.Eloston.UngoogledChromium/x86_64/stable/active/files/chromium/policies/policies/managed/chrome.json"
# path: /var/lib/flatpak/app/com.github.Eloston.UngoogledChromium/x86_64/stable/active/files/chromium/policies/policies/recommended
# state: directory
# mode: '0755'
- name: Chromium recommended policy - name: Chromium recommended policy
ansible.builtin.copy: ansible.builtin.copy:
@ -43,3 +42,6 @@
mode: '0444' mode: '0444'
follow: yes follow: yes
backup: yes backup: yes
with_items:
- "/etc/chromium/policies/recommended/chrome.json"
- "/var/lib/flatpak/app/com.github.Eloston.UngoogledChromium/x86_64/stable/active/files/chromium/policies/policies/recommended/chrome.json"