require rpcbind

This commit is contained in:
chris 2020-01-04 14:48:10 +01:00
parent 8c08a1f0fa
commit 68886a9410
1 changed files with 16 additions and 1 deletions

View File

@ -1,4 +1,19 @@
---
- name: install rpcbind
apt:
name: rpcbind
- name: disable rpcbind from the internet
iptables:
action: insert
chain: INPUT
comment: drop portmapper
in_interface: "!nodevpn"
jump: DROP
protocol: "{{item}}"
destination_port: "111"
with_items:
- tcp
- udp
- name: install gluster package
apt:
name: glusterfs-server
@ -15,7 +30,7 @@
mount:
path: /mnt/gluster
src: /dev/sdb
options: noatime
opts: noatime
fstype: ext4
state: mounted
- name: gluster peers