More E208 fixes
Change-Id: I95dca97c8f79a96d7710b33cb0ee243d3234b7ca
This commit is contained in:
parent
856866fdde
commit
b5fffff87b
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user