added update-alternatives for ip6tables

Change-Id: Ia7ceff4f59cb172fe0deb9a9515153cd282384e6
This commit is contained in:
Vladimir Blando 2020-07-24 00:12:05 +08:00 committed by Mohammed Naser
parent f1b65d2820
commit 7fe111c78d

View File

@ -57,8 +57,11 @@
- name: Switch to legacy iptables
alternatives:
name: iptables
link: /usr/sbin/iptables
path: /usr/sbin/iptables-legacy
name: "{{ item }}"
link: "/usr/sbin/{{ item }}"
path: "/usr/sbin/{{ item }}-legacy"
become: true
when: ansible_os_family == "Debian"
loop:
- iptables
- ip6tables