[FIX] use root for all handlers
This commit is contained in:
parent
ec961db180
commit
e9a8c2cc86
|
@ -2,21 +2,25 @@
|
||||||
# handlers file for server
|
# handlers file for server
|
||||||
|
|
||||||
- name: Restart sshd
|
- name: Restart sshd
|
||||||
|
become: yes
|
||||||
service:
|
service:
|
||||||
name: ssh
|
name: ssh
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: Enable caddy
|
- name: Enable caddy
|
||||||
|
become: yes
|
||||||
service:
|
service:
|
||||||
name: caddy
|
name: caddy
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: Restart caddy
|
- name: Restart caddy
|
||||||
|
become: yes
|
||||||
service:
|
service:
|
||||||
name: caddy
|
name: caddy
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: Enable and restart caddy
|
- name: Enable and restart caddy
|
||||||
|
become: yes
|
||||||
service:
|
service:
|
||||||
name: caddy
|
name: caddy
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
Loading…
Reference in a new issue