Permalink
Browse files

autofs: automount Arq network share

Mounting the SMB share using MacOS 'Connect to Server' is unreliable
and manual. If the connection drops, it can sometimes be impossible to
reconnect with restarting.
  • Loading branch information...
jamesramsay committed Dec 1, 2017
1 parent 5005e92 commit cf11730f7fafb8b8d33585bc75290d85ae04b243
Showing with 19 additions and 0 deletions.
  1. +1 −0 darwin.yml
  2. +1 −0 roles/autofs/description
  3. +1 −0 roles/autofs/files/auto_synology
  4. +16 −0 roles/autofs/tasks/main.yml
@@ -1,6 +1,7 @@
---
- hosts: localhost
roles:
- { role: autofs, tags: ['autofs'] }
- { role: dotfiles, tags: ['dotfiles'] }
- { role: homebrew, tags: ['homebrew'] }
- { role: fonts, tags: ['fonts'] }
@@ -0,0 +1 @@
Install autofs mounts for Arq backup
@@ -0,0 +1 @@
Arq -fstype=smbfs,rw,noowners,noatime ://backup:timemachine@10.1.1.3/Arq
@@ -0,0 +1,16 @@
---
- name: autofs | create mountpoint
file: path=/mnt state=directory
- name: autofs | update master map
lineinfile:
dest: '/etc/auto_master'
line: '/mnt/Synology auto_synology'
- name: autofs | create mount map
copy:
src: '{{ role_path }}/files/auto_synology'
dest: '/etc/auto_synology'
- name: autofs | flush cache
raw: sudo automount -vc

0 comments on commit cf11730

Please sign in to comment.