Specify changed_when for shell commands

This commit is contained in:
2024-10-28 19:20:05 +01:00
parent 5312ec8cc6
commit e37b5a535b
9 changed files with 71 additions and 1 deletions

View File

@@ -88,3 +88,5 @@
when: hypervisor != "libvirt"
ansible.builtin.command: reboot
failed_when: false
changed_when: result.rc == 0
register: result