first commit

This commit is contained in:
root
2024-07-12 12:58:40 +02:00
commit 30fdad3be5
557 changed files with 11142 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
---
# - name: Copy VHD from WORM sa to corporate sa
# ansible.windows.win_powershell:
# script: |
# C:\Windows\System32\azcopy_windows_amd64_10.16.2\azcopy.exe copy --recursive "https://saapewormsaweprd.blob.core.windows.net/coapewormsaweprd0/?sv=2021-06-08&ss=bfqt&srt=co&sp=rwdlacupiytfx&se=2023-01-31T21:01:05Z&st=2022-11-30T13:01:05Z&spr=https&sig=7HCiPgsEF7LPik0QxPfoDysKNsInZyyk%2BQiKGkgNxfM%3D" "https://saawewormrestores.blob.core.windows.net/test/?sv=2021-06-08&ss=bfqt&srt=co&sp=rwdlacupiytfx&se=2023-01-31T21:12:47Z&st=2022-11-30T13:12:47Z&spr=https&sig=9216998FWWenz928iDfL8Lsqw%2BTYJY1ll1IlBoKspoI%3D" --include-pattern 'OG_{{vmhostname}}*{{dag}}-{{maand}}-{{jaar}}.vhd'
# register: output
# - name: Debug output
# debug: var=output.stdout
# 13-11-2022 is de template voor datum
- name: Copy VHD from WORM sa to corporate sa
command: azcopy copy --recursive "https://saapewormsaweprd.blob.core.windows.net/coapewormsaweprd0/?sv=2021-06-08&ss=bfqt&srt=co&sp=rwdlacupiytfx&se=2023-01-31T21:01:05Z&st=2022-11-30T13:01:05Z&spr=https&sig=7HCiPgsEF7LPik0QxPfoDysKNsInZyyk%2BQiKGkgNxfM%3D" "https://saawewormrestores.blob.core.windows.net/test/?sv=2021-06-08&ss=bfqt&srt=co&sp=rwdlacupiytfx&se=2023-01-31T21:12:47Z&st=2022-11-30T13:12:47Z&spr=https&sig=9216998FWWenz928iDfL8Lsqw%2BTYJY1ll1IlBoKspoI%3D" --include-pattern 'OG_{{vmhostname}}*{{dag}}-{{maand}}-{{jaar}}.vhd'
# become: true
# become_user: root
async: 2000
poll: 0
register: azcopy_sleeper
# - name: check on async tasks
# ansible.builtin.async_status:
# jid: '{{ azcopy_sleeper.ansible_job_id }}'
# register: job_result
# until: job_result.finished
# retries: 100
# delay: 10