chromium/chromium.yml
2022-07-25 14:37:55 +02:00

52 lines
1.7 KiB
YAML

- name: Chromium setup
hosts: all
tasks:
# - name: Install Chromium
# apt:
# name:
# - chromium-browser
- name: Install Flatpaks
community.general.flatpak:
name:
- com.github.Eloston.UngoogledChromium
- name: Create a directory if it does not exist
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: root
group: root
mode: '0755'
with_items:
- "/etc/chromium/policies/managed"
- "/etc/chromium/policies/recommended"
- "/var/lib/flatpak/app/com.github.Eloston.UngoogledChromium/x86_64/stable/active/files/chromium/policies/policies/managed"
- "/var/lib/flatpak/app/com.github.Eloston.UngoogledChromium/x86_64/stable/active/files/chromium/policies/policies/recommended"
- name: Chromium managed policy
ansible.builtin.copy:
src: chromium-managed.json
dest: "{{ item }}"
owner: root
group: root
mode: '0444'
follow: yes
backup: yes
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:
src: chromium-recommended.json
dest: "{{ item }}"
owner: root
group: root
mode: '0444'
follow: 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"