2022-07-14 09:17:45 +02:00
|
|
|
- name: Chromium setup
|
|
|
|
hosts: all
|
|
|
|
tasks:
|
2022-07-14 11:43:30 +02:00
|
|
|
|
2024-09-17 18:52:29 +02:00
|
|
|
- name: Install Chromium
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- chromium
|
2022-07-25 14:37:55 +02:00
|
|
|
|
2024-09-30 16:38:34 +02:00
|
|
|
# - name: Install Ungoogled Chromium Flatpak
|
|
|
|
# community.general.flatpak:
|
|
|
|
# name:
|
|
|
|
# - io.github.ungoogled_software.ungoogled_chromium
|
2022-07-25 14:37:55 +02:00
|
|
|
|
2022-07-14 09:34:05 +02:00
|
|
|
- name: Create a directory if it does not exist
|
|
|
|
ansible.builtin.file:
|
2022-07-14 11:54:22 +02:00
|
|
|
path: "{{ item }}"
|
2022-07-14 09:34:05 +02:00
|
|
|
state: directory
|
2022-07-14 11:58:21 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
2022-07-14 09:34:05 +02:00
|
|
|
mode: '0755'
|
2022-07-14 11:49:06 +02:00
|
|
|
with_items:
|
2022-07-14 11:53:35 +02:00
|
|
|
- "/etc/chromium/policies/managed"
|
|
|
|
- "/etc/chromium/policies/recommended"
|
2024-09-17 18:52:29 +02:00
|
|
|
# - "/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"
|
2022-07-14 09:34:05 +02:00
|
|
|
|
2022-07-14 09:35:12 +02:00
|
|
|
- name: Chromium managed policy
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: chromium-managed.json
|
2022-07-14 11:58:21 +02:00
|
|
|
dest: "{{ item }}"
|
2022-07-14 09:35:12 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0444'
|
|
|
|
follow: yes
|
|
|
|
backup: yes
|
2022-07-14 11:58:21 +02:00
|
|
|
with_items:
|
|
|
|
- "/etc/chromium/policies/managed/chrome.json"
|
2024-09-17 18:52:29 +02:00
|
|
|
# - "/var/lib/flatpak/app/io.github.ungoogled_software.ungoogled_chromium/current/active/files/chromium/policies/managed/chrome.json"
|
2022-07-14 09:34:05 +02:00
|
|
|
|
2022-07-14 09:35:12 +02:00
|
|
|
- name: Chromium recommended policy
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: chromium-recommended.json
|
2022-07-14 12:03:14 +02:00
|
|
|
dest: "{{ item }}"
|
2022-07-14 09:35:12 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0444'
|
|
|
|
follow: yes
|
2022-07-14 11:58:21 +02:00
|
|
|
backup: yes
|
|
|
|
with_items:
|
|
|
|
- "/etc/chromium/policies/recommended/chrome.json"
|
2024-09-17 18:52:29 +02:00
|
|
|
# - "/var/lib/flatpak/app/io.github.ungoogled_software.ungoogled_chromium/current/active/files/chromium/policies/recommended/chrome.json"
|
2024-09-17 09:47:15 +02:00
|
|
|
|