diff --git a/handlers/restart_consul.yml b/handlers/restart_consul.yml index 2fbca7ef..4ec297e7 100644 --- a/handlers/restart_consul.yml +++ b/handlers/restart_consul.yml @@ -7,6 +7,7 @@ listen: reload systemd daemon - name: Restart consul on Unix + become: true ansible.builtin.service: name: consul state: restarted diff --git a/handlers/restart_rsyslog.yml b/handlers/restart_rsyslog.yml index a1fcc63b..7ae04be3 100644 --- a/handlers/restart_rsyslog.yml +++ b/handlers/restart_rsyslog.yml @@ -1,5 +1,6 @@ --- - name: Restart rsyslog + become: true ansible.builtin.service: name: rsyslog state: restarted diff --git a/handlers/restart_syslogng.yml b/handlers/restart_syslogng.yml index 13e1bd8e..4dadae9f 100644 --- a/handlers/restart_syslogng.yml +++ b/handlers/restart_syslogng.yml @@ -1,5 +1,6 @@ --- - name: Restart syslog-ng + become: true ansible.builtin.service: name: syslog-ng state: restarted diff --git a/handlers/start_consul.yml b/handlers/start_consul.yml index e9b7e993..f162df4e 100644 --- a/handlers/start_consul.yml +++ b/handlers/start_consul.yml @@ -1,5 +1,6 @@ --- - name: Start consul on Unix + become: true ansible.builtin.service: name: consul state: started diff --git a/handlers/start_snapshot.yml b/handlers/start_snapshot.yml index 6d4edff4..67b5a698 100644 --- a/handlers/start_snapshot.yml +++ b/handlers/start_snapshot.yml @@ -1,5 +1,6 @@ --- - name: Start consul snapshot on Unix + become: true ansible.builtin.service: name: consul_snapshot state: started