Ansible_workstation/tasks/home_autofs.yml

27 lines
506 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
- name: Enable SSH daemon
service:
name: sshd
state: started
enabled: yes