Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 797 Bytes
- 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
You can’t perform that action at this time.