add lockdown mode
This commit is contained in:
parent
b03d756c46
commit
aebf8d7676
|
@ -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: ""
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue