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 - 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: