2018-10-18 17:24:36 +00:00
|
|
|
---
|
|
|
|
- name: Install autofs
|
|
|
|
pacman:
|
|
|
|
name: autofs
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Create NAS share directory
|
|
|
|
file:
|
|
|
|
path: /media/Songe
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Activate NAS shares for autofs
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/autofs/auto.master
|
|
|
|
line: '/media/Songe /etc/autofs/auto.songe --timeout=60'
|
|
|
|
|
|
|
|
- name: NAS autofs config file
|
|
|
|
template:
|
|
|
|
src: files/autofs.songe
|
|
|
|
dest: /etc/autofs/auto.songe
|
|
|
|
|
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
|