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: copy:
content: "{{ iptables_rules.stdout }}" content: "{{ iptables_rules.stdout }}"
dest: "/etc/iptables/rules.v4" dest: "/etc/iptables/rules.v4"
mode: 0644
- name: Persist ipv6 rules - name: Persist ipv6 rules
become: yes become: yes
copy: copy:
content: "{{ ip6tables_rules.stdout }}" content: "{{ ip6tables_rules.stdout }}"
dest: "/etc/iptables/rules.v6" dest: "/etc/iptables/rules.v6"
mode: 0644
- name: Ensure netfilter-persistent is started - name: Ensure netfilter-persistent is started
become: yes become: yes

View File

@ -3,12 +3,14 @@
copy: copy:
content: "{{ iptables_rules.stdout }}" content: "{{ iptables_rules.stdout }}"
dest: "/var/lib/iptables/rules-save" dest: "/var/lib/iptables/rules-save"
mode: 0644
- name: Persist ipv6 rules - name: Persist ipv6 rules
become: yes become: yes
copy: copy:
content: "{{ ip6tables_rules.stdout }}" content: "{{ ip6tables_rules.stdout }}"
dest: "/var/lib/ip6tables/rules-save" dest: "/var/lib/ip6tables/rules-save"
mode: 0644
- name: Ensure iptables is started - name: Ensure iptables is started
become: yes become: yes

View File

@ -3,12 +3,14 @@
copy: copy:
content: "{{ iptables_rules.stdout }}" content: "{{ iptables_rules.stdout }}"
dest: "/etc/sysconfig/iptables" dest: "/etc/sysconfig/iptables"
mode: 0644
- name: Persist ipv6 rules - name: Persist ipv6 rules
become: yes become: yes
copy: copy:
content: "{{ ip6tables_rules.stdout }}" content: "{{ ip6tables_rules.stdout }}"
dest: "/etc/sysconfig/ip6tables" dest: "/etc/sysconfig/ip6tables"
mode: 0644
# This provides the systemd unit file for iptables which might not be installed # This provides the systemd unit file for iptables which might not be installed
- name: Ensure iptables-services is installed - name: Ensure iptables-services is installed

View File

@ -3,12 +3,14 @@
copy: copy:
content: "{{ iptables_rules.stdout }}" content: "{{ iptables_rules.stdout }}"
dest: "/etc/sysconfig/iptables" dest: "/etc/sysconfig/iptables"
mode: 0644
- name: Persist ipv6 rules - name: Persist ipv6 rules
become: yes become: yes
copy: copy:
content: "{{ ip6tables_rules.stdout }}" content: "{{ ip6tables_rules.stdout }}"
dest: "/etc/sysconfig/ip6tables" dest: "/etc/sysconfig/ip6tables"
mode: 0644
- name: Configure rc.local to restore saved rules on restart - name: Configure rc.local to restore saved rules on restart
become: yes become: yes

View File

@ -9,12 +9,14 @@
copy: copy:
content: "{{ iptables_rules.stdout }}" content: "{{ iptables_rules.stdout }}"
dest: "/etc/iptables/rules.v4" dest: "/etc/iptables/rules.v4"
mode: 0644
- name: Persist ipv6 rules - name: Persist ipv6 rules
become: yes become: yes
copy: copy:
content: "{{ ip6tables_rules.stdout }}" content: "{{ ip6tables_rules.stdout }}"
dest: "/etc/iptables/rules.v6" dest: "/etc/iptables/rules.v6"
mode: 0644
- name: Ensure iptables-persistent is started - name: Ensure iptables-persistent is started
become: yes become: yes

View File

@ -3,6 +3,7 @@
file: file:
path: "{{ ansible_env.HOME }}/test-results/{{ zj_artifact.url.rstrip('/')|basename }}" path: "{{ ansible_env.HOME }}/test-results/{{ zj_artifact.url.rstrip('/')|basename }}"
state: directory state: directory
mode: 0755
- name: Fetch artifact - name: Fetch artifact
get_url: get_url: