mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
chromium-browse autostart for server console
This commit is contained in:
parent
05b61e8672
commit
76ca4b977d
1 changed files with 13 additions and 0 deletions
|
@ -23,6 +23,19 @@
|
|||
when: nginx_installed is defined
|
||||
#when: nginx_install
|
||||
|
||||
- name: Make home page autostart on localhost (the server's console) if session manager is LXDE (rpi)
|
||||
stat:
|
||||
path: /etc/lxsession/LXDE-pi/autostart
|
||||
register: lxde_present
|
||||
|
||||
- name: Add a chromium-browser to autostart if session manager is LXDE
|
||||
lineinfile:
|
||||
path: /etc/lxsession/LXDE-pi/autostart
|
||||
rexexp: '^/usr/bin/chromium-browser'
|
||||
line: '/usr/bin/chromium-browser --ignore-certificate-errors --disable-restore-session-state http://box/home'
|
||||
when:
|
||||
lxde_present.stat.exists
|
||||
|
||||
- debug:
|
||||
msg: 'THE 3 ANSIBLE STANZAS BELOW ONLY RUN... when: (nginx_high_php_limits or moodle_install or nextcloud_install or pbx_install or wordpress_install) and nginx_enabled'
|
||||
|
||||
|
|
Loading…
Reference in a new issue