mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
tighten conditionals (gratuitous "startup_unit.stat.exists is defined")
This commit is contained in:
parent
d6a51cb175
commit
ff07ba716a
1 changed files with 4 additions and 4 deletions
|
@ -7,20 +7,20 @@
|
||||||
template:
|
template:
|
||||||
src: iiab-startup.service
|
src: iiab-startup.service
|
||||||
dest: /etc/systemd/system/
|
dest: /etc/systemd/system/
|
||||||
when: startup_unit.stat.exists is defined and not startup_unit.stat.exists
|
when: not startup_unit.stat.exists
|
||||||
|
|
||||||
- name: Copy template script to /usr/libexec/iiab-startup.sh
|
- name: Copy template script to /usr/libexec/iiab-startup.sh
|
||||||
template:
|
template:
|
||||||
src: iiab-startup.sh
|
src: iiab-startup.sh
|
||||||
dest: /usr/libexec/
|
dest: /usr/libexec/
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: startup_unit.stat.exists is defined and not startup_unit.stat.exists
|
when: not startup_unit.stat.exists
|
||||||
|
|
||||||
- name: Do a systemd daemon-reload
|
- name: Do a systemd daemon-reload
|
||||||
# shell: systemctl daemon-reload
|
# shell: systemctl daemon-reload
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
when: startup_unit.stat.exists is defined and not startup_unit.stat.exists
|
when: not startup_unit.stat.exists
|
||||||
|
|
||||||
- name: Enable & restart the systemd service
|
- name: Enable & restart the systemd service
|
||||||
# shell: systemctl restart iiab-startup.service
|
# shell: systemctl restart iiab-startup.service
|
||||||
|
@ -28,4 +28,4 @@
|
||||||
service:
|
service:
|
||||||
enabled: yes
|
enabled: yes
|
||||||
restarted: yes
|
restarted: yes
|
||||||
when: startup_unit.stat.exists is defined and not startup_unit.stat.exists
|
when: not startup_unit.stat.exists
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue