More E208 fixes

Change-Id: I95dca97c8f79a96d7710b33cb0ee243d3234b7ca
This commit is contained in:
Sorin Sbarnea 2020-11-02 13:34:40 +00:00 committed by zbr
parent 856866fdde
commit b5fffff87b
6 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: