From 5b9c0995f52c8f2caf51d7059d004e3b12265046 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 12 Aug 2021 22:38:19 +0300 Subject: use sudo for reboot --- roles/common/handlers/main.yml | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3