mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-31 04:20:15 +00:00
extra steps on os-trasnfer
This commit is contained in:
1 parent
3f54917ebe
commit
8a49590720
5 files changed
+58
-8
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user