Feat(Choux): autofs for Raisin

This commit is contained in:
Bertrand Benjamin 2019-02-03 18:32:32 +01:00
parent 68e33722ea
commit 9f4a8ba668
3 changed files with 11 additions and 4 deletions

1
files/autofs.raisin Normal file
View File

@ -0,0 +1 @@
raisin_doc -fstype=cifs ://Raisin/Tosh500G

View File

@ -35,6 +35,7 @@
- fzf
- ntfs-3g
- git-annex
- cifs-utils
state: present
tags:
- first_deployement
@ -81,6 +82,11 @@
become: yes
become_user: aur_builder
- name: Init Samba (empty config)
file:
path: /etc/samba/smb.conf
state: file
# - name: Install Tmuxinator
# aur:
# name: "{{ item }}"

View File

@ -6,18 +6,18 @@
- name: Create NAS share directory
file:
path: /media/Songe
path: /media/Raisin
state: directory
- name: Activate NAS shares for autofs
lineinfile:
path: /etc/autofs/auto.master
line: '/media/Songe /etc/autofs/auto.songe --timeout=60'
line: '/media/Raisin /etc/autofs/auto.raisin --timeout=60'
- name: NAS autofs config file
template:
src: files/autofs.songe
dest: /etc/autofs/auto.songe
src: files/autofs.raisin
dest: /etc/autofs/auto.raisin
- name: Enable autofs daemon
service: