Skip to content

Commit

Permalink
adding become to service restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
hallaj authored and Muhammad Hallaj bin Subery committed Jan 16, 2024
1 parent 5e7c67c commit 119e61f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions handlers/restart_consul.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
listen: reload systemd daemon

- name: Restart consul on Unix
become: true
ansible.builtin.service:
name: consul
state: restarted
Expand Down
1 change: 1 addition & 0 deletions handlers/restart_rsyslog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- name: Restart rsyslog
become: true
ansible.builtin.service:
name: rsyslog
state: restarted
Expand Down
1 change: 1 addition & 0 deletions handlers/restart_syslogng.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- name: Restart syslog-ng
become: true
ansible.builtin.service:
name: syslog-ng
state: restarted
Expand Down
1 change: 1 addition & 0 deletions handlers/start_consul.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- name: Start consul on Unix
become: true
ansible.builtin.service:
name: consul
state: started
Expand Down
1 change: 1 addition & 0 deletions handlers/start_snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- name: Start consul snapshot on Unix
become: true
ansible.builtin.service:
name: consul_snapshot
state: started
Expand Down

0 comments on commit 119e61f

Please sign in to comment.