-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathautomount-data.yml
More file actions
37 lines (33 loc) · 805 Bytes
/
automount-data.yml
File metadata and controls
37 lines (33 loc) · 805 Bytes
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
31
32
33
34
35
36
37
---
- hosts: all
gather_facts: no
tasks:
- file:
path: /data
state: directory
mode: 0755
- copy:
content: |
[Unit]
Description=rhclient4:/data
[Mount]
What=rhclient4:/data
Where=/data
Type=nfs
[Install]
WantedBy=multi-user.target
dest: /etc/systemd/system/data.mount
- copy:
content: |
[Unit]
Description=AutoMount rhclient4:/data
[Automount]
Where=/data
[Install]
WantedBy=multi-user.target
dest: /etc/systemd/system/data.automount
- systemd:
daemon_reload: yes
unit: data.automount
enabled: true
state: started