1
0
Fork 0

add lockdown mode

This commit is contained in:
Massaki Archambault 2023-11-07 00:52:51 -05:00
parent b03d756c46
commit aebf8d7676
2 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,5 @@
kiosk_url: https://floatingqrcode.com/ kiosk_url: https://floatingqrcode.com/
lockdown: false
proxy: proxy:
http_proxy: "" http_proxy: ""
https_proxy: "" https_proxy: ""

View File

@ -39,7 +39,7 @@
NO_PROXY="{{ proxy.no_proxy }}" NO_PROXY="{{ proxy.no_proxy }}"
notify: Reboot notify: Reboot
- name: Configure autologin - name: Enable autologin
command: raspi-config nonint do_boot_behaviour B2 command: raspi-config nonint do_boot_behaviour B2
- name: Install kiosk script - name: Install kiosk script
@ -47,3 +47,16 @@
src: kiosk.sh.j2 src: kiosk.sh.j2
dest: /etc/profile.d/kiosk.sh dest: /etc/profile.d/kiosk.sh
notify: Reboot notify: Reboot
# 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