convert two reboot tasks running on changed to handlers
Some checks failed
/ Ansible Lint (push) Failing after 1m37s

This fixes ansible-lint no-handler complaints.
This commit is contained in:
June 2024-12-01 04:38:07 +01:00
commit e3a29c422a
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
4 changed files with 11 additions and 10 deletions

View file

@ -9,7 +9,5 @@
ansible.builtin.apt:
upgrade: dist
register: apt_update_and_upgrade__upgrade_result
- name: reboot, after package upgrade
ansible.builtin.reboot:
when: apt_update_and_upgrade__upgrade_result.changed
notify:
- reboot the system