From 8dbafb32d670be39ebde1cf4f49964213d46d81e Mon Sep 17 00:00:00 2001 From: olli Date: Thu, 14 Jul 2022 11:58:21 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Echromium.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chromium.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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