mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
consolidate 3 commands w/ Ansible's systemd module
This commit is contained in:
parent
ff07ba716a
commit
fbe58d0ba6
1 changed files with 4 additions and 7 deletions
|
@ -16,16 +16,13 @@
|
|||
mode: 0755
|
||||
when: not startup_unit.stat.exists
|
||||
|
||||
- name: Do a systemd daemon-reload
|
||||
- name: Enable & restart the systemd service after daemon-reload
|
||||
# shell: systemctl daemon-reload
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
when: not startup_unit.stat.exists
|
||||
|
||||
- name: Enable & restart the systemd service
|
||||
# shell: systemctl restart iiab-startup.service
|
||||
# shell: systemctl enable iiab-startup.service
|
||||
service:
|
||||
systemd:
|
||||
name: iiab-startup
|
||||
daemon_reload: yes
|
||||
enabled: yes
|
||||
restarted: yes
|
||||
when: not startup_unit.stat.exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue