Ansible_workstation/tasks/home_autofs.yml

22 lines
417 B
YAML

---
- 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