mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
Lint www_options/tasks/main.yml
This commit is contained in:
parent
8c50177702
commit
319b5a2342
1 changed files with 10 additions and 12 deletions
|
@ -25,29 +25,27 @@
|
|||
|
||||
- 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
|
||||
path: /etc/xdg/lxsession/LXDE-pi/autostart
|
||||
register: lxde_present
|
||||
|
||||
- name: Check for Chromium name change
|
||||
stat:
|
||||
path: /usr/bin/chromium
|
||||
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
|
||||
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
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue