blob: 400e37a8329b80a9d99c62f2f76ca7c2ba24c954 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
- name: Install nfs-client deps
apt: pkg={{item}}
with_items:
- rpcbind
- nfs-common
- name: Ensure nfs client directory exists
file: path={{item.path}} state=directory
with_items: "{{nfs_client_mount}}"
- name: Mount or unmount nfs_client_mount
mount:
name: "{{item.path}}"
src: "{{item.src}}"
opts: "{{item.opts}}"
fstype: nfs
state: "{{item.state}}"
with_items: "{{nfs_client_mount}}"
- name: Ensure rpcbind is running
service: name=rpcbind state=started enabled=yes
|