extra steps on os-trasnfer

This commit is contained in:
abrown38 committed 2024-09-06 16:06:54 +01:00
1 parent 3f54917ebe
commit 8a49590720
5 files changed
+58 -8

No files matched your search

+13 -5
View File
@@ -5,12 +5,20 @@
ansible.windows.win_powershell:
script: |
Move-Item -Path "{{ study_folder }}" -Destination S:\Archived_Studies
- name: Removing folders
block:
- name: Delete study folders on T drive
ansible.windows.win_file:
path: "T:\\{{ item }}\\{{ study_code }}"
state: absent
with_items: ["Import", "Export"]
- name: Delete study folders on T drive
ansible.windows.win_file:
path: "T:\\{{ item }}\\{{ study_code }}"
state: absent
with_items: ["Import", "Export"]
- name: Delete study folders on T drive
ansible.windows.win_file:
path: "T:\\{{ item }}\\{{ study_code }}"
state: absent
with_items: ["Import", "Export"]
- name: Delete AD group
community.windows.win_domain_group: