2018-10-18 17:24:36 +00:00
|
|
|
---
|
|
|
|
- name: Install autofs
|
|
|
|
pacman:
|
|
|
|
name: autofs
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Create NAS share directory
|
|
|
|
file:
|
2019-02-03 17:32:32 +00:00
|
|
|
path: /media/Raisin
|
2018-10-18 17:24:36 +00:00
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Activate NAS shares for autofs
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/autofs/auto.master
|
2019-04-18 14:03:34 +00:00
|
|
|
line: '/media/raisin /etc/autofs/auto.raisin --timeout=60 --browse'
|
2018-10-18 17:24:36 +00:00
|
|
|
|
|
|
|
- name: NAS autofs config file
|
|
|
|
template:
|
2019-02-03 17:32:32 +00:00
|
|
|
src: files/autofs.raisin
|
|
|
|
dest: /etc/autofs/auto.raisin
|
2018-10-18 17:24:36 +00:00
|
|
|
|
2018-10-18 17:45:06 +00:00
|
|
|
- name: Enable autofs daemon
|
2018-10-18 17:42:05 +00:00
|
|
|
service:
|
2018-10-18 17:45:06 +00:00
|
|
|
name: autofs
|
2018-10-18 17:42:05 +00:00
|
|
|
state: started
|
|
|
|
enabled: yes
|