aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/libvirt
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-12-29 15:42:32 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-12-29 15:54:09 +0100
commit1dcac3ff16b9d2d8c0d637d55d75239d86f1f11d (patch)
tree21df823719fa23d2ed37dca518ac699d61c42606 /roles/_workstation/libvirt
parentcadc8824e093f37c36263b2aefba3cd680389f0b (diff)
downloadrules-1dcac3ff16b9d2d8c0d637d55d75239d86f1f11d.tar.gz
refactor(roles/_workstation): enforce changed_when statements
Diffstat (limited to 'roles/_workstation/libvirt')
-rw-r--r--roles/_workstation/libvirt/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
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:
remember that computers suck.