raspi
This commit is contained in:
parent
a478bd0959
commit
feec96c304
19
chromium.yml
19
chromium.yml
@ -1,16 +1,23 @@
|
||||
- name: Chromium setup
|
||||
hosts: all
|
||||
tasks:
|
||||
|
||||
- name: check if we are in a RaspberryPiOS
|
||||
stat:
|
||||
path: /usr/bin/wayfire-pi
|
||||
register: raspi
|
||||
|
||||
- name: Install Chromium
|
||||
apt:
|
||||
name:
|
||||
- chromium
|
||||
when: (raspi.stat.exists == false)
|
||||
|
||||
# - name: Install Ungoogled Chromium Flatpak
|
||||
# community.general.flatpak:
|
||||
# name:
|
||||
# - io.github.ungoogled_software.ungoogled_chromium
|
||||
- name: Install Chromium on Raspi
|
||||
apt:
|
||||
name:
|
||||
- chromium-browser
|
||||
when: (raspi.stat.exists == true)
|
||||
|
||||
- name: Create a directory if it does not exist
|
||||
ansible.builtin.file:
|
||||
@ -22,8 +29,6 @@
|
||||
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:
|
||||
@ -36,7 +41,6 @@
|
||||
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:
|
||||
@ -49,5 +53,4 @@
|
||||
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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user