From 1dcac3ff16b9d2d8c0d637d55d75239d86f1f11d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 29 Dec 2022 15:42:32 +0100 Subject: refactor(roles/_workstation): enforce changed_when statements --- roles/_workstation/libvirt/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/_workstation/libvirt') diff --git a/roles/_workstation/libvirt/tasks/main.yml b/roles/_workstation/libvirt/tasks/main.yml index 91b74a2..0563d83 100644 --- a/roles/_workstation/libvirt/tasks/main.yml +++ b/roles/_workstation/libvirt/tasks/main.yml @@ -4,6 +4,9 @@ ansible.builtin.shell: yes | pacman --noprogressbar --needed --sync iptables-nft when: ansible_distribution == "Archlinux" + register: libvirt_result_install_iptables + changed_when: "'there is nothing to do' + not in libvirt_result_install_iptables.stdout" - name: install libvirt ansible.builtin.package: -- cgit v1.2.3