25 lines
483 B
YAML
25 lines
483 B
YAML
---
|
|
# tasks file for windows_initialize-azconnect
|
|
|
|
- name: Create directory structure
|
|
ansible.windows.win_file:
|
|
path: \\awe-mps-006.adagility.net\cor$\{{ansible_date_time.year + ansible_date_time.month + ansible_date_time.day}}\Infra\Configs\AZ_VMINFO\
|
|
state: directory
|
|
- name: Run export script
|
|
ansible.windows.win_powershell:
|
|
script: |
|
|
F:\Data\COR\export_az-vms.ps1 >> F:\Data\COR\$(get-date -f yyyyMMdd)\Infra\Configs\AZ_VMINFO\servers.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|