mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Merge pull request #2609 from georgejhunt/autostart
Autostart -- Bring up home page on console automatically if it's a Rpi desktop [Ubuntu Desktop 20.10 for RPi not ready for primetime...yet?]
This commit is contained in:
commit
e244ab1532
1 changed files with 26 additions and 0 deletions
|
@ -23,6 +23,32 @@
|
||||||
when: nginx_installed is defined
|
when: nginx_installed is defined
|
||||||
#when: nginx_install
|
#when: nginx_install
|
||||||
|
|
||||||
|
- name: Make home page autostart on localhost (the server's console) if session manager is LXDE (rpi)
|
||||||
|
stat:
|
||||||
|
path: /etc/xdg/lxsession/LXDE-pi/autostart
|
||||||
|
register: lxde_present
|
||||||
|
|
||||||
|
- name: Check for Chromium name change
|
||||||
|
stat:
|
||||||
|
path: /usr/bin/chromium
|
||||||
|
register: chromium_present
|
||||||
|
|
||||||
|
- name: Add chromium-browser to /etc/xdg/lxsession/LXDE-pi/autostart if session manager is LXDE
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/xdg/lxsession/LXDE-pi/autostart
|
||||||
|
regexp: '^/usr/bin/chromium-browser'
|
||||||
|
line: '/usr/bin/chromium-browser --disable-restore-session-state http://box/home'
|
||||||
|
when:
|
||||||
|
lxde_present.stat.exists and not chromium_present.stat.exists
|
||||||
|
|
||||||
|
- name: Add chromium to /etc/xdg/lxsession/LXDE-pi/autostart if session manager is LXDE
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/xdg/lxsession/LXDE-pi/autostart
|
||||||
|
regexp: '^/usr/bin/chromium'
|
||||||
|
line: '/usr/bin/chromium --disable-restore-session-state http://box/home'
|
||||||
|
when:
|
||||||
|
lxde_present.stat.exists and chromium_present.stat.exists
|
||||||
|
|
||||||
- debug:
|
- 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'
|
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