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

@@ -4,6 +4,8 @@
- name: Prepare partitions
failed_when: false
ansible.builtin.command: "{{ item.cmd }}"
changed_when: result.rc == 0
register: result
loop:
- { cmd: umount -l /mnt }
- { cmd: vgremove -f sys }