refactor: use generic ansible modules service and package
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
313d6acc8f
commit
040383a611
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Restart unifi service
|
- name: Restart unifi service
|
||||||
systemd:
|
service:
|
||||||
state: restarted
|
state: restarted
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
name: unifi
|
name: unifi
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
become_user: "{{ unifi_user }}"
|
become_user: "{{ unifi_user }}"
|
||||||
|
|
||||||
- name: Stop service while restore process
|
- name: Stop service while restore process
|
||||||
systemd:
|
service:
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: yes
|
enabled: yes
|
||||||
name: unifi
|
name: unifi
|
||||||
@ -59,7 +59,7 @@
|
|||||||
delegate_to: "{{ inventory_hostname }}"
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
|
|
||||||
- name: Start service after restore process
|
- name: Start service after restore process
|
||||||
systemd:
|
service:
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
name: unifi
|
name: unifi
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Ensure service is up and running
|
- name: Ensure service is up and running
|
||||||
systemd:
|
service:
|
||||||
state: started
|
state: started
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user