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
|
||||
systemd:
|
||||
service:
|
||||
state: restarted
|
||||
daemon_reload: yes
|
||||
name: unifi
|
||||
|
@ -43,7 +43,7 @@
|
||||
become_user: "{{ unifi_user }}"
|
||||
|
||||
- name: Stop service while restore process
|
||||
systemd:
|
||||
service:
|
||||
state: stopped
|
||||
enabled: yes
|
||||
name: unifi
|
||||
@ -59,7 +59,7 @@
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
|
||||
- name: Start service after restore process
|
||||
systemd:
|
||||
service:
|
||||
state: started
|
||||
enabled: yes
|
||||
name: unifi
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
- block:
|
||||
- name: Ensure service is up and running
|
||||
systemd:
|
||||
service:
|
||||
state: started
|
||||
daemon_reload: yes
|
||||
enabled: yes
|
||||
|
Loading…
Reference in New Issue
Block a user