Commit b6382e14 authored by nanahira's avatar nanahira

catchup

parent 43c6ee65
...@@ -12,14 +12,15 @@ ...@@ -12,14 +12,15 @@
shell: iptables --version | grep nf_tables shell: iptables --version | grep nf_tables
register: iptables_type_result register: iptables_type_result
failed_when: iptables_type_result.rc > 1 failed_when: iptables_type_result.rc > 1
when: iptables_type == 'auto'
- name: use iptables-legacy - name: use iptables-legacy
set_fact: set_fact:
iptables_type: legacy iptables_type: legacy
when: iptables_type_result.rc == 1 when: iptables_type == 'auto' and iptables_type_result.rc == 1
- name: use iptables-nft - name: use iptables-nft
set_fact: set_fact:
iptables_type: nft iptables_type: nft
when: iptables_type_result.rc > 1 when: iptables_type == 'auto' and iptables_type_result.rc == 0
- name: post scripts - name: post scripts
template: template:
src: scripts/{{item}}.sh.j2 src: scripts/{{item}}.sh.j2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment