refactor: use generic ansible modules service and package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-06-05 15:30:37 +02:00
parent 313d6acc8f
commit 040383a611
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
---
- name: Restart unifi service
systemd:
service:
state: restarted
daemon_reload: yes
name: unifi

View File

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

View File

@ -1,7 +1,7 @@
---
- block:
- name: Ensure service is up and running
systemd:
service:
state: started
daemon_reload: yes
enabled: yes