Move folder instead of delete when archiving

This commit is contained in:
abrown38 committed 2024-06-07 11:57:03 +01:00
1 parent 30f1ad68ca
commit f666b9d979
1 file changed
+4 -4
+4 -4
View File
@@ -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: