2019-04-01 09:38:33 +00:00
|
|
|
---
|
2019-05-16 07:27:43 +00:00
|
|
|
- name: Set base_dir
|
|
|
|
set_fact:
|
2019-05-02 21:24:21 +00:00
|
|
|
base_dir: "{{ playbook_dir }}/.generated/"
|
2016-12-12 16:21:56 +00:00
|
|
|
|
2019-05-16 07:27:43 +00:00
|
|
|
- name: Create base_dir
|
|
|
|
file:
|
2019-05-02 21:24:21 +00:00
|
|
|
path: "{{ base_dir }}"
|
|
|
|
state: directory
|
|
|
|
recurse: true
|
2016-12-12 16:21:56 +00:00
|
|
|
|
2019-05-16 07:27:43 +00:00
|
|
|
- name: Store json files in base_dir
|
|
|
|
template:
|
2019-05-02 21:24:21 +00:00
|
|
|
src: "{{ item }}"
|
|
|
|
dest: "{{ base_dir }}/{{ item }}"
|
2016-12-12 16:21:56 +00:00
|
|
|
with_items:
|
|
|
|
- network.json
|
|
|
|
- storage.json
|
|
|
|
- availability-sets.json
|
|
|
|
- bastion.json
|
|
|
|
- masters.json
|
|
|
|
- minions.json
|
|
|
|
- clear-rg.json
|