2019-04-01 17:38:33 +08:00
|
|
|
---
|
2016-12-13 00:21:56 +08:00
|
|
|
- set_fact:
|
2019-05-03 05:24:21 +08:00
|
|
|
base_dir: "{{ playbook_dir }}/.generated/"
|
2016-12-13 00:21:56 +08:00
|
|
|
|
2019-05-03 05:24:21 +08:00
|
|
|
- file:
|
|
|
|
path: "{{ base_dir }}"
|
|
|
|
state: directory
|
|
|
|
recurse: true
|
2016-12-13 00:21:56 +08:00
|
|
|
|
2019-05-03 05:24:21 +08:00
|
|
|
- template:
|
|
|
|
src: "{{ item }}"
|
|
|
|
dest: "{{ base_dir }}/{{ item }}"
|
2016-12-13 00:21:56 +08:00
|
|
|
with_items:
|
|
|
|
- network.json
|
|
|
|
- storage.json
|
|
|
|
- availability-sets.json
|
|
|
|
- bastion.json
|
|
|
|
- masters.json
|
|
|
|
- minions.json
|
|
|
|
- clear-rg.json
|