mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 10: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
|
||||
block:
|
||||
- name: Remove study folder
|
||||
win_file:
|
||||
path: "{{ study_folder }}"
|
||||
state: absent
|
||||
- name: Move study folder to archive
|
||||
ansible.windows.win_powershell:
|
||||
script: |
|
||||
Move-Item -Path "{{ study_folder }}" -Destination S:\Archive
|
||||
|
||||
- name: Delete study folders on T drive
|
||||
ansible.windows.win_file:
|
||||
|
||||
Reference in new issue
Block a user