mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
accomodate chromium name change in 64 bit image
This commit is contained in:
parent
ffef8b8ecf
commit
8ca435c473
1 changed files with 14 additions and 1 deletions
|
@ -28,13 +28,26 @@
|
||||||
path: /etc/xdg/lxsession/LXDE-pi/autostart
|
path: /etc/xdg/lxsession/LXDE-pi/autostart
|
||||||
register: lxde_present
|
register: lxde_present
|
||||||
|
|
||||||
|
- name: Check for Chromium name change
|
||||||
|
stat:
|
||||||
|
path: /usr/bin/chromium
|
||||||
|
register: chromium_present
|
||||||
|
|
||||||
- name: Add a chromium-browser to autostart if session manager is LXDE
|
- name: Add a chromium-browser to autostart if session manager is LXDE
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/xdg/lxsession/LXDE-pi/autostart
|
path: /etc/xdg/lxsession/LXDE-pi/autostart
|
||||||
regexp: '^/usr/bin/chromium-browser'
|
regexp: '^/usr/bin/chromium-browser'
|
||||||
line: '/usr/bin/chromium-browser --ignore-certificate-errors --disable-restore-session-state http://box/home'
|
line: '/usr/bin/chromium-browser --ignore-certificate-errors --disable-restore-session-state http://box/home'
|
||||||
when:
|
when:
|
||||||
lxde_present.stat.exists
|
lxde_present.stat.exists and not chromium_present.stat.exists
|
||||||
|
|
||||||
|
- name: Add a chromium-browser to autostart if session manager is LXDE
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/xdg/lxsession/LXDE-pi/autostart
|
||||||
|
regexp: '^/usr/bin/chromium-browser'
|
||||||
|
line: '/usr/bin/chromium --ignore-certificate-errors --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…
Add table
Add a link
Reference in a new issue