2023-11-07 04:36:48 +00:00
|
|
|
- name: Perform system upgrades
|
2023-11-07 03:24:44 +00:00
|
|
|
apt:
|
|
|
|
update_cache: true
|
|
|
|
upgrade: dist
|
|
|
|
environment:
|
|
|
|
http_proxy: "{{ proxy.http_proxy }}"
|
|
|
|
HTTP_PROXY: "{{ proxy.http_proxy }}"
|
|
|
|
https_proxy: "{{ proxy.https_proxy }}"
|
|
|
|
HTTPS_PROXY: "{{ proxy.https_proxy }}"
|
|
|
|
no_proxy: "{{ proxy.no_proxy }}"
|
|
|
|
NO_PROXY: "{{ proxy.no_proxy }}"
|
|
|
|
|
2023-11-02 05:59:48 +00:00
|
|
|
- name: Install Cage window manager and Midori browser
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
name:
|
|
|
|
- cage
|
|
|
|
- xwayland
|
2023-11-07 04:36:48 +00:00
|
|
|
- gtk3-nocsd
|
|
|
|
- midori
|
2023-11-07 03:24:44 +00:00
|
|
|
- chromium-browser
|
|
|
|
environment:
|
|
|
|
http_proxy: "{{ proxy.http_proxy }}"
|
|
|
|
HTTP_PROXY: "{{ proxy.http_proxy }}"
|
|
|
|
https_proxy: "{{ proxy.https_proxy }}"
|
|
|
|
HTTPS_PROXY: "{{ proxy.https_proxy }}"
|
|
|
|
no_proxy: "{{ proxy.no_proxy }}"
|
|
|
|
NO_PROXY: "{{ proxy.no_proxy }}"
|
|
|
|
|
|
|
|
- name: Configure proxy
|
|
|
|
blockinfile:
|
|
|
|
path: /etc/environment
|
|
|
|
block: |
|
|
|
|
http_proxy="{{ proxy.http_proxy }}"
|
|
|
|
HTTP_PROXY="{{ proxy.http_proxy }}"
|
|
|
|
https_proxy="{{ proxy.https_proxy }}"
|
|
|
|
HTTPS_PROXY="{{ proxy.https_proxy }}"
|
|
|
|
no_proxy="{{ proxy.no_proxy }}"
|
|
|
|
NO_PROXY="{{ proxy.no_proxy }}"
|
|
|
|
notify: Reboot
|
2023-11-02 05:59:48 +00:00
|
|
|
|
2023-11-07 05:52:51 +00:00
|
|
|
- name: Enable autologin
|
2023-11-02 05:59:48 +00:00
|
|
|
command: raspi-config nonint do_boot_behaviour B2
|
2023-11-07 04:36:48 +00:00
|
|
|
|
2023-11-02 05:59:48 +00:00
|
|
|
- name: Install kiosk script
|
|
|
|
template:
|
|
|
|
src: kiosk.sh.j2
|
|
|
|
dest: /etc/profile.d/kiosk.sh
|
|
|
|
notify: Reboot
|
2023-11-07 05:52:51 +00:00
|
|
|
|
|
|
|
# This help prevent sd card corruption over time
|
|
|
|
- name: Enable overlayfs
|
|
|
|
command: raspi-config nonint do_overlayfs 0
|
|
|
|
when: lockdown
|
|
|
|
notify: Reboot
|
|
|
|
|
|
|
|
- name: Turn off ssh server
|
|
|
|
service:
|
|
|
|
name: ssh
|
|
|
|
enabled: false
|
|
|
|
when: lockdown
|
|
|
|
notify: Reboot
|