Feat(Choux): Enable autofs and use it to mount nas share

This commit is contained in:
2018-10-18 19:24:36 +02:00
parent 75e3f50337
commit c94e124c92
4 changed files with 35 additions and 0 deletions

21
tasks/home_autofs.yml Normal file
View File

@@ -0,0 +1,21 @@
---
- 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