diff --git a/hosts b/hosts index c279ff5..50c1878 100644 --- a/hosts +++ b/hosts @@ -1,2 +1,2 @@ -[raspberrypi-kiosk] +[raspberrypi_kiosk] raspberrypi.local ansible_user=pi ansible_password=raspberry ansible_become_method=sudo ansible_become_user=root \ No newline at end of file diff --git a/roles/raspberrypi-kiosk/tasks/main.yaml b/roles/raspberrypi-kiosk/tasks/main.yaml index 7d239ac..643aedf 100644 --- a/roles/raspberrypi-kiosk/tasks/main.yaml +++ b/roles/raspberrypi-kiosk/tasks/main.yaml @@ -1,4 +1,4 @@ -- name: Perform system update +- name: Perform system upgrades apt: update_cache: true upgrade: dist @@ -16,7 +16,8 @@ name: - cage - xwayland - # - gtk3-nocsd + - gtk3-nocsd + - midori - chromium-browser environment: http_proxy: "{{ proxy.http_proxy }}" @@ -36,11 +37,11 @@ HTTPS_PROXY="{{ proxy.https_proxy }}" no_proxy="{{ proxy.no_proxy }}" NO_PROXY="{{ proxy.no_proxy }}" - notify: Reboot - name: Configure autologin command: raspi-config nonint do_boot_behaviour B2 + - name: Install kiosk script template: src: kiosk.sh.j2 diff --git a/roles/raspberrypi-kiosk/templates/kiosk.sh.j2 b/roles/raspberrypi-kiosk/templates/kiosk.sh.j2 index b6064ed..9581a9e 100644 --- a/roles/raspberrypi-kiosk/templates/kiosk.sh.j2 +++ b/roles/raspberrypi-kiosk/templates/kiosk.sh.j2 @@ -3,6 +3,7 @@ if [ "$(tty)" = "/dev/tty1" ]; then while true; do GTK_CSD=0 cage -d -s -- midori -e fullscreen -a {{ kiosk_url }} + #cage -d -s -- chromium-browser --noerrdialogs --disable-infobars --kiosk {{ kiosk_url }} sleep 1 done fi \ No newline at end of file