Ansible_workstation/tasks/home_autofs.yml

27 lines
511 B
YAML
Raw Normal View History

---
- 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
- name: Enable autofs daemon
2018-10-18 17:42:05 +00:00
service:
name: autofs
2018-10-18 17:42:05 +00:00
state: started
enabled: yes