first commit
This commit is contained in:
18
central_fs-bootstrap.yml
Normal file
18
central_fs-bootstrap.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Create needed folders for the central file server
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: set folders
|
||||
ansible.builtin.set_fact:
|
||||
folders: ['\\awe-mps-006.adagility.net\cor$\{{ "%Y%m%d" | strftime( ( ansible_date_time.epoch | int ))}}\Infra\',
|
||||
'\\awe-mps-006.adagility.net\cor$\{{ "%Y%m%d" | strftime( ( ansible_date_time.epoch | int ))}}\Middleware\',
|
||||
'\\awe-mps-006.adagility.net\cor$\{{ "%Y%m%d" | strftime( ( ansible_date_time.epoch | int ))}}\Infra\Configs\',
|
||||
'\\awe-mps-006.adagility.net\cor$\{{ "%Y%m%d" | strftime( ( ansible_date_time.epoch | int ))}}\Infra\Configs\AZ_VMINFO\',
|
||||
'\\awe-mps-006.adagility.net\cor$\{{ "%Y%m%d" | strftime( ( ansible_date_time.epoch | int ))}}\Infra\Configs\PRINTER\',
|
||||
'\\awe-mps-006.adagility.net\cor$\{{ "%Y%m%d" | strftime( ( ansible_date_time.epoch | int ))}}\Infra\Configs\DHCP\']
|
||||
|
||||
- name: create daily folder
|
||||
ansible.windows.win_file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items: "{{ folders }}"
|
||||
Reference in New Issue
Block a user