mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 21:47:21 +00:00
29 lines
793 B
YAML
29 lines
793 B
YAML
---
|
|
- name: Setup Mount
|
|
tags: setup_mount
|
|
block:
|
|
- name: Create the mount point
|
|
file:
|
|
path: "{{ mount_directory }}"
|
|
state: directory
|
|
mode: "0770"
|
|
owner: sg-transfer
|
|
group: sg-transfer
|
|
|
|
- name: Copy smb-credential template to os-transfer
|
|
template:
|
|
dest: "{{ credentials_path }}"
|
|
src: smb-credentials.j2
|
|
delegate_to: os-transfer
|
|
|
|
- name: Mount Filesystem
|
|
tags: mount_filesystem
|
|
block:
|
|
- name: Mount filesystem on os-transfer
|
|
ansible.posix.mount:
|
|
src: "//{{ hostvars[inventory_hostname].ansible_host }}/File_Transfer"
|
|
path: "{{ mount_directory }}"
|
|
opts: "credentials={{ credentials_path }},iocharset=utf8"
|
|
state: mounted
|
|
fstype: cifs
|
|
delegate_to: os-transfer |