diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-08-12 22:38:19 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-08-12 22:38:19 +0300 |
commit | 5b9c0995f52c8f2caf51d7059d004e3b12265046 (patch) | |
tree | 9c4baffd84f8bff86db155f078570b4392d3ce65 /roles/common/handlers | |
parent | roles: add "failed_when: no" where needs be (diff) | |
download | maintenance-5b9c0995f52c8f2caf51d7059d004e3b12265046.tar.gz maintenance-5b9c0995f52c8f2caf51d7059d004e3b12265046.zip |
use sudo for reboot
Diffstat (limited to 'roles/common/handlers')
-rw-r--r-- | roles/common/handlers/main.yml | 1 |
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 |