1
0
Fork 0
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:
A Holt 2018-01-10 20:06:20 -05:00 committed by GitHub
parent ff07ba716a
commit fbe58d0ba6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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