blob: a3f0565b8cc76ae7151e505d097b49593b2e2e1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
---
- name: open gluster ports
iptables:
chain: INPUT
destination_port: "{{ item }}"
jump: ACCEPT
ctstate: NEW
protocol: tcp
action: insert
match: tcp
with_items: "{{ gluster_ports }}"
when: groups['storage'] is defined and groups['storage'] != []
register: rule
- name: save iptables
shell: iptables-save > /etc/sysconfig/iptables
when: rule|changed
- name: open gluster ports
iptables:
chain: INPUT
destination_port: "{{ item }}"
ctstate: NEW
jump: ACCEPT
protocol: tcp
action: insert
match: tcp
with_items: "{{ crs_ports }}"
when: groups['crs'] is defined and groups['crs'] != []
register: heketi
- name: save iptables
shell: iptables-save > /etc/sysconfig/iptables
when: heketi|changed
|