diff options
Diffstat (limited to 'roles/apt')
-rw-r--r-- | roles/apt/handlers/main.yml | 1 | ||||
-rw-r--r-- | roles/apt/tasks/main.yml | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/roles/apt/handlers/main.yml b/roles/apt/handlers/main.yml index 81438db..354104a 100644 --- a/roles/apt/handlers/main.yml +++ b/roles/apt/handlers/main.yml @@ -3,3 +3,4 @@ ansible.builtin.reboot: # 3 minutes is plenty. reboot_timeout: 180 + listen: apt_reboot diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml index 5d45adb..be4ab8e 100644 --- a/roles/apt/tasks/main.yml +++ b/roles/apt/tasks/main.yml @@ -4,7 +4,7 @@ install_recommends: false update_cache: true upgrade: dist - notify: Reboot + notify: apt_reboot - name: Reboot if necessary ansible.builtin.meta: flush_handlers @@ -14,7 +14,7 @@ ansible.builtin.apt: autoremove: true purge: true - notify: Reboot + notify: apt_reboot - name: Reboot if necessary ansible.builtin.meta: flush_handlers |