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: "[Alpine] Generate /etc/fstab"
template:
src: fstab.j2
dest: /etc/fstab
mode: 0755
owner: root
group: root
when:
- ansible_distribution == "Alpine"
- system.fstab is defined
- name: "[Alpine] Install package: nfs-utils"
apk:
name: nfs-utils
state: present
update_cache: yes
when:
- ansible_distribution == "Alpine"
- system.enableNFSMount is true
- name: "[OpenRC] Disable and stop service: nfsmount"
service:
name: nfsmount
enabled: no
state: stopped
when:
- ansible_service_mgr == "openrc"
- system.enableNFSMount is false