Fix iptables install on arch

This commit is contained in:
2021-10-02 12:54:11 +02:00
parent f80e24cc28
commit efba2a92a2
2 changed files with 4 additions and 1 deletions

View File

@@ -238,7 +238,7 @@ packages:
archlinux: ["lsof"]
iptables:
ubuntu: ["iptables"]
archlinux: ["iptables"]
archlinux: ["iptables-nft"]
pwgen:
ubuntu: ["pwgen"]
archlinux: ["pwgen"]

View File

@@ -155,6 +155,9 @@
update_cache: true
become: true
when: distro == 'ubuntu'
- name: force-update iptables to iptables-nft on arch
shell: pacman -Q iptables-nft || yes | pacman -S iptables-nft
changed_when: false
- set_fact:
defined_packages: "{{ packages|json_query('keys(list)') }}"