aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/apt/handlers/main.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--roles/apt/handlers/main.yml13
1 files changed, 1 insertions, 12 deletions
diff --git a/roles/apt/handlers/main.yml b/roles/apt/handlers/main.yml
index 625a8af..81438db 100644
--- a/roles/apt/handlers/main.yml
+++ b/roles/apt/handlers/main.yml
@@ -1,16 +1,5 @@
- name: Reboot
+ become: true
ansible.builtin.reboot:
- args:
# 3 minutes is plenty.
reboot_timeout: 180
- # Don't reboot yourself accidentally:
- when: 'ansible_env["SSH_CLIENT"].split()[0] not in ansible_all_ipv4_addresses'
- become: true
- listen: reboot
-
-- name: Wait for connectivity
- ansible.builtin.wait_for_connection:
- args:
- # 3 minutes is plenty.
- timeout: 180
- listen: reboot