blob: 032631b489c769227c2b645d7acb750f1a5fc76f (
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
|
- name: Ensure GlusterFS repositories are present
yum: name="centos-release-gluster{{ glusterfs_version }}" state=present
- name: Ensure Ganesha is installed
yum: name={{item}} state=present
with_items:
- nfs-ganesha-gluster
- nfs-ganesha
- name: Change logdir group to prevent selinux problems
file: dest="/var/log/ganesha" owner="ganesha" group="root" mode="0775" state="directory"
- name: Copy default Ganesha configuration
copy: src="ganesha.conf" dest="/etc/ganesha/ganesha.conf" owner="root" group="root" mode="0644"
- name: Configure Ganesha HA
template: src="ganesha-ha.conf.j2" dest="/etc/ganesha/ganesha-ha.conf" owner=root group=root mode="0644"
- name: Configure firewalld
firewalld: service="{{ item }}" state="enabled" permanent="true" immediate="true"
with_items:
- nfs
# - mountd
# - rpc-bind
- name: Reload firewalld rules
shell: firewall-cmd --reload
- name: Enable and start ganesha service
service: name="nfs-ganesha" state=started enabled=yes
|