Commit 79296360 authored by nanahira's avatar nanahira

fix changed_when

parent a23e1e19
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
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
changed_when: false
when: iptables_type == 'auto' when: iptables_type == 'auto'
- name: use iptables-legacy - name: use iptables-legacy
set_fact: set_fact:
...@@ -82,18 +83,22 @@ ...@@ -82,18 +83,22 @@
- name: mycard ipset create - name: mycard ipset create
become: true become: true
shell: 'ipset create mycard hash:net maxelem 1000000 || true' shell: 'ipset create mycard hash:net maxelem 1000000 || true'
changed_when: false
- name: mycard ipset - name: mycard ipset
become: true become: true
shell: 'ipset add mycard {{item}} || true' shell: 'ipset add mycard {{item}} || true'
with_items: '{{routeLists.mycard}}' with_items: '{{routeLists.mycard}}'
changed_when: false
- name: localnet ipset - name: localnet ipset
become: true become: true
shell: 'ipset add localnet {{item}} || true' shell: 'ipset add localnet {{item}} || true'
with_items: '{{routeLists.mycard}}' with_items: '{{routeLists.mycard}}'
changed_when: false
- name: table pref 81 lookup main - name: table pref 81 lookup main
become: true become: true
shell: 'ip -4 rule add pref 81 to {{item}} lookup main || true' shell: 'ip -4 rule add pref 81 to {{item}} lookup main || true'
with_items: '{{routeLists.mycard}}' with_items: '{{routeLists.mycard}}'
changed_when: false
- name: ocserv pre-configure - name: ocserv pre-configure
include_tasks: 'protocols/oc/ocserv-pre.yaml' include_tasks: 'protocols/oc/ocserv-pre.yaml'
when: ocservNeeded and not noBird when: ocservNeeded and not noBird
......
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