54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
- name: Chromium setup
|
|
hosts: all
|
|
tasks:
|
|
|
|
- name: Install Chromium
|
|
apt:
|
|
name:
|
|
- chromium
|
|
|
|
# - name: Install Ungoogled Chromium Flatpak
|
|
# community.general.flatpak:
|
|
# name:
|
|
# - io.github.ungoogled_software.ungoogled_chromium
|
|
|
|
- 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/io.github.ungoogled_software.ungoogled_chromium/current/active/files/chromium/policies/managed"
|
|
# - "/var/lib/flatpak/app/io.github.ungoogled_software.ungoogled_chromium/current/active/files/chromium/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/io.github.ungoogled_software.ungoogled_chromium/current/active/files/chromium/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/io.github.ungoogled_software.ungoogled_chromium/current/active/files/chromium/policies/recommended/chrome.json"
|
|
|