attempt to make chromium work
This commit is contained in:
parent
45bddcac3d
commit
b03d756c46
2
hosts
2
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
|
raspberrypi.local ansible_user=pi ansible_password=raspberry ansible_become_method=sudo ansible_become_user=root
|
|
@ -1,4 +1,4 @@
|
||||||
- name: Perform system update
|
- name: Perform system upgrades
|
||||||
apt:
|
apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
|
@ -16,7 +16,8 @@
|
||||||
name:
|
name:
|
||||||
- cage
|
- cage
|
||||||
- xwayland
|
- xwayland
|
||||||
# - gtk3-nocsd
|
- gtk3-nocsd
|
||||||
|
- midori
|
||||||
- chromium-browser
|
- chromium-browser
|
||||||
environment:
|
environment:
|
||||||
http_proxy: "{{ proxy.http_proxy }}"
|
http_proxy: "{{ proxy.http_proxy }}"
|
||||||
|
@ -36,11 +37,11 @@
|
||||||
HTTPS_PROXY="{{ proxy.https_proxy }}"
|
HTTPS_PROXY="{{ proxy.https_proxy }}"
|
||||||
no_proxy="{{ proxy.no_proxy }}"
|
no_proxy="{{ proxy.no_proxy }}"
|
||||||
NO_PROXY="{{ proxy.no_proxy }}"
|
NO_PROXY="{{ proxy.no_proxy }}"
|
||||||
|
|
||||||
notify: Reboot
|
notify: Reboot
|
||||||
|
|
||||||
- name: Configure autologin
|
- name: Configure 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
|
||||||
template:
|
template:
|
||||||
src: kiosk.sh.j2
|
src: kiosk.sh.j2
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
while true; do
|
while true; do
|
||||||
GTK_CSD=0 cage -d -s -- midori -e fullscreen -a {{ kiosk_url }}
|
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
|
sleep 1
|
||||||
done
|
done
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue