This commit is contained in:
olli 2024-10-07 16:01:26 +02:00
parent a478bd0959
commit feec96c304

View File

@ -1,16 +1,23 @@
- name: Chromium setup - name: Chromium setup
hosts: all hosts: all
tasks: tasks:
- name: check if we are in a RaspberryPiOS
stat:
path: /usr/bin/wayfire-pi
register: raspi
- name: Install Chromium - name: Install Chromium
apt: apt:
name: name:
- chromium - chromium
when: (raspi.stat.exists == false)
# - name: Install Ungoogled Chromium Flatpak - name: Install Chromium on Raspi
# community.general.flatpak: apt:
# name: name:
# - io.github.ungoogled_software.ungoogled_chromium - chromium-browser
when: (raspi.stat.exists == true)
- name: Create a directory if it does not exist - name: Create a directory if it does not exist
ansible.builtin.file: ansible.builtin.file:
@ -22,8 +29,6 @@
with_items: with_items:
- "/etc/chromium/policies/managed" - "/etc/chromium/policies/managed"
- "/etc/chromium/policies/recommended" - "/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 - name: Chromium managed policy
ansible.builtin.copy: ansible.builtin.copy:
@ -36,7 +41,6 @@
backup: yes backup: yes
with_items: with_items:
- "/etc/chromium/policies/managed/chrome.json" - "/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 - name: Chromium recommended policy
ansible.builtin.copy: ansible.builtin.copy:
@ -49,5 +53,4 @@
backup: yes backup: yes
with_items: with_items:
- "/etc/chromium/policies/recommended/chrome.json" - "/etc/chromium/policies/recommended/chrome.json"
# - "/var/lib/flatpak/app/io.github.ungoogled_software.ungoogled_chromium/current/active/files/chromium/policies/recommended/chrome.json"