16 lines
653 B
YAML
16 lines
653 B
YAML
- name: Install cifs-utils
|
|
apt: name=cifs-utils state=present
|
|
become: true
|
|
|
|
- name: Assures {{copydrive_mount_dir}} dir exists
|
|
file: path="{{ copydrive_mount_dir }}" state=directory owner=root group=root mode=0600
|
|
become: true
|
|
|
|
- name: Copy cifs mount credentials
|
|
action: copy src=mount-copy-credentials dest="/root/.di_cifs_copy" owner=root group=root mode=0600
|
|
become: true
|
|
|
|
- name: Add fstab entry for copydrive
|
|
mount: name="{{ copydrive_mount_dir }}" src="{{ copydrive_location }}" fstype=cifs opts="credentials=/root/.di_cifs_copy,iocharset=utf8,sec=ntlm,nounix,file_mode=0666,cache=strict,dir_mode=0777" state=mounted
|
|
become: true
|