blob: 9eeff9260d4950c8736e6c897fcedb0dfc5016de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
---
- name: Install NFS server
package: name=nfs-utils state=present
when: not openshift.common.is_containerized | bool
- name: Start rpcbind on Fedora/Red Hat
systemd:
name: rpcbind
state: started
enabled: yes
- name: Start nfs on Fedora/Red Hat
systemd:
name: nfs-server
state: started
enabled: yes
- name: Export the directories
lineinfile: dest=/etc/exports
regexp="^{{ mount_dir }}/{{ item.name }} "
line="{{ mount_dir }}/{{ item.name }} {{nfs_export_options}}"
with_items: "{{ partition_pool }}"
notify: restart nfs
|