Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
- hosts: nodes
tasks:
- name: insert iptables rules required for GlusterFS
blockinfile:
dest: /etc/sysconfig/iptables
block: |
-A OS_FIREWALL_ALLOW -p tcp -m state --state NEW -m tcp --dport 24007 -j ACCEPT
-A OS_FIREWALL_ALLOW -p tcp -m state --state NEW -m tcp --dport 24008 -j ACCEPT
-A OS_FIREWALL_ALLOW -p tcp -m state --state NEW -m tcp --dport 2222 -j ACCEPT
-A OS_FIREWALL_ALLOW -p tcp -m state --state NEW -m multiport --dports 49152:49664 -j ACCEPT
insertbefore: "^COMMIT"
- name: reload iptables
systemd:
name: iptables
state: reloaded
- name: Install needed packages
package: name={{ item }} state=present
with_items:
- cns-deploy
- heketi-client