mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-29 13:57:21 +00:00
Move folder instead of delete when archiving
This commit is contained in:
1 parent
30f1ad68ca
commit
f666b9d979
1 file changed
+4
-4
@@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: Delete Study
|
- name: Delete Study
|
||||||
block:
|
block:
|
||||||
- name: Remove study folder
|
- name: Move study folder to archive
|
||||||
win_file:
|
ansible.windows.win_powershell:
|
||||||
path: "{{ study_folder }}"
|
script: |
|
||||||
state: absent
|
Move-Item -Path "{{ study_folder }}" -Destination S:\Archive
|
||||||
|
|
||||||
- name: Delete study folders on T drive
|
- name: Delete study folders on T drive
|
||||||
ansible.windows.win_file:
|
ansible.windows.win_file:
|
||||||
|
|||||||
Reference in new issue
Block a user