mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 13:27:21 +00:00
remove mount from os-transfer
This commit is contained in:
1 parent
eacd5f090b
commit
9ef1776b60
2 files changed
+20
No files matched your search
@@ -1,2 +1,4 @@
|
||||
---
|
||||
- import_tasks: mount.yml
|
||||
- import_tasks: teardown.yml
|
||||
tags: teardown
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Unmount Filesystem
|
||||
block:
|
||||
- name: Unmount 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: absent
|
||||
fstype: cifs
|
||||
register: mount_status
|
||||
failed_when: mount_status.changed == false
|
||||
|
||||
- name: Remove smb-credential template
|
||||
file:
|
||||
path: "{{ credentials_path }}"
|
||||
state: absent
|
||||
delegate_to: os-transfer
|
||||
Reference in new issue
Block a user