Ansible_workstation/tasks/home_autofs.yml

27 lines
525 B
YAML

---
- name: Install autofs
pacman:
name: autofs
state: present
- name: Create NAS share directory
file:
path: /media/Raisin
state: directory
- name: Activate NAS shares for autofs
lineinfile:
path: /etc/autofs/auto.master
line: '/media/raisin /etc/autofs/auto.raisin --timeout=60 --browse'
- name: NAS autofs config file
template:
src: files/autofs.raisin
dest: /etc/autofs/auto.raisin
- name: Enable autofs daemon
service:
name: autofs
state: started
enabled: yes