aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/common/handlers
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-08-12 22:38:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-08-12 22:38:19 +0300
commit5b9c0995f52c8f2caf51d7059d004e3b12265046 (patch)
tree9c4baffd84f8bff86db155f078570b4392d3ce65 /roles/common/handlers
parentroles: add "failed_when: no" where needs be (diff)
downloadmaintenance-5b9c0995f52c8f2caf51d7059d004e3b12265046.tar.gz
maintenance-5b9c0995f52c8f2caf51d7059d004e3b12265046.zip
use sudo for reboot
Diffstat (limited to 'roles/common/handlers')
-rw-r--r--roles/common/handlers/main.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml
index 70c4b16..9560068 100644
--- a/roles/common/handlers/main.yml
+++ b/roles/common/handlers/main.yml
@@ -11,6 +11,7 @@
reboot_timeout: 300
# Don't reboot yourself accidentally:
when: 'ansible_env["SSH_CLIENT"].split()[0] not in ansible_all_ipv4_addresses'
+ become: yes
listen: reboot
- name: Wait for connectivity