Reintroduce fixed iptables workaround
This commit is contained in:
13
playbook.yml
13
playbook.yml
@@ -154,6 +154,19 @@
|
|||||||
file: packages.yml
|
file: packages.yml
|
||||||
name: defined_packages
|
name: defined_packages
|
||||||
|
|
||||||
|
- name: force-update iptables to iptables-nft on arch
|
||||||
|
shell: |
|
||||||
|
if ! pacman -Qi iptables | grep '^Name.*iptables-nft' ; then
|
||||||
|
# --noconfirm does not cut it
|
||||||
|
yes | pacman -S iptables-nft
|
||||||
|
exit 100
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
become: true
|
||||||
|
register: force_install_iptables
|
||||||
|
changed_when: force_install_iptables.rc == 100
|
||||||
|
failed_when: force_install_iptables.rc not in (0, 100)
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
distro_packages: "{{ defined_packages|json_query('*.%s'|format(distro)) }}"
|
distro_packages: "{{ defined_packages|json_query('*.%s'|format(distro)) }}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user