More E208 fixes
Change-Id: I95dca97c8f79a96d7710b33cb0ee243d3234b7ca
This commit is contained in:
parent
856866fdde
commit
b5fffff87b
@ -9,12 +9,14 @@
|
||||
copy:
|
||||
content: "{{ iptables_rules.stdout }}"
|
||||
dest: "/etc/iptables/rules.v4"
|
||||
mode: 0644
|
||||
|
||||
- name: Persist ipv6 rules
|
||||
become: yes
|
||||
copy:
|
||||
content: "{{ ip6tables_rules.stdout }}"
|
||||
dest: "/etc/iptables/rules.v6"
|
||||
mode: 0644
|
||||
|
||||
- name: Ensure netfilter-persistent is started
|
||||
become: yes
|
||||
|
@ -3,12 +3,14 @@
|
||||
copy:
|
||||
content: "{{ iptables_rules.stdout }}"
|
||||
dest: "/var/lib/iptables/rules-save"
|
||||
mode: 0644
|
||||
|
||||
- name: Persist ipv6 rules
|
||||
become: yes
|
||||
copy:
|
||||
content: "{{ ip6tables_rules.stdout }}"
|
||||
dest: "/var/lib/ip6tables/rules-save"
|
||||
mode: 0644
|
||||
|
||||
- name: Ensure iptables is started
|
||||
become: yes
|
||||
|
@ -3,12 +3,14 @@
|
||||
copy:
|
||||
content: "{{ iptables_rules.stdout }}"
|
||||
dest: "/etc/sysconfig/iptables"
|
||||
mode: 0644
|
||||
|
||||
- name: Persist ipv6 rules
|
||||
become: yes
|
||||
copy:
|
||||
content: "{{ ip6tables_rules.stdout }}"
|
||||
dest: "/etc/sysconfig/ip6tables"
|
||||
mode: 0644
|
||||
|
||||
# This provides the systemd unit file for iptables which might not be installed
|
||||
- name: Ensure iptables-services is installed
|
||||
|
@ -3,12 +3,14 @@
|
||||
copy:
|
||||
content: "{{ iptables_rules.stdout }}"
|
||||
dest: "/etc/sysconfig/iptables"
|
||||
mode: 0644
|
||||
|
||||
- name: Persist ipv6 rules
|
||||
become: yes
|
||||
copy:
|
||||
content: "{{ ip6tables_rules.stdout }}"
|
||||
dest: "/etc/sysconfig/ip6tables"
|
||||
mode: 0644
|
||||
|
||||
- name: Configure rc.local to restore saved rules on restart
|
||||
become: yes
|
||||
|
@ -9,12 +9,14 @@
|
||||
copy:
|
||||
content: "{{ iptables_rules.stdout }}"
|
||||
dest: "/etc/iptables/rules.v4"
|
||||
mode: 0644
|
||||
|
||||
- name: Persist ipv6 rules
|
||||
become: yes
|
||||
copy:
|
||||
content: "{{ ip6tables_rules.stdout }}"
|
||||
dest: "/etc/iptables/rules.v6"
|
||||
mode: 0644
|
||||
|
||||
- name: Ensure iptables-persistent is started
|
||||
become: yes
|
||||
|
@ -3,6 +3,7 @@
|
||||
file:
|
||||
path: "{{ ansible_env.HOME }}/test-results/{{ zj_artifact.url.rstrip('/')|basename }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: Fetch artifact
|
||||
get_url:
|
||||
|
Loading…
Reference in New Issue
Block a user