diff --git a/chromium.yml b/chromium.yml index abba50d..c05fa60 100644 --- a/chromium.yml +++ b/chromium.yml @@ -11,6 +11,8 @@ ansible.builtin.file: path: "{{ item }}" state: directory + owner: root + group: root mode: '0755' with_items: - "/etc/chromium/policies/managed" @@ -21,18 +23,15 @@ - name: Chromium managed policy ansible.builtin.copy: 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 group: root mode: '0444' follow: yes backup: yes - -# - name: Create a directory if it does not exist -# ansible.builtin.file: -# path: /var/lib/flatpak/app/com.github.Eloston.UngoogledChromium/x86_64/stable/active/files/chromium/policies/policies/recommended -# state: directory -# mode: '0755' + with_items: + - "/etc/chromium/policies/managed/chrome.json" + - "/var/lib/flatpak/app/com.github.Eloston.UngoogledChromium/x86_64/stable/active/files/chromium/policies/policies/managed/chrome.json" - name: Chromium recommended policy ansible.builtin.copy: @@ -42,4 +41,7 @@ group: root mode: '0444' follow: yes - backup: yes \ No newline at end of file + 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" \ No newline at end of file