dump vars to yaml, and loose become

yaml should work fine now
lets try w/o become

Change-Id: If745f27f0263bbea7e33745d845539c8d3b6e352
This commit is contained in:
Wes Hayutin 2020-09-16 14:17:51 -06:00
parent 6193d699e0
commit f9dcdfd75e
6 changed files with 10 additions and 16 deletions

View File

@ -1,34 +1,28 @@
---
- name: Prepare directory with extra logs
file: dest={{ dump_vars_log_dir }} state=directory
become: true
- name: generate dump_variables_vars script
template:
src: dump_variables_vars.j2
dest: "{{ dump_vars_log_dir }}/dump_variables_vars.json"
become: true
dest: "{{ dump_vars_log_dir }}/dump_variables_vars.yaml"
- name: generate dump_variables_environment script
template:
src: dump_variables_environment.j2
dest: "{{ dump_vars_log_dir }}/dump_variables_environment.json"
become: true
dest: "{{ dump_vars_log_dir }}/dump_variables_environment.yaml"
- name: generate dump_variables_group_names script
template:
src: dump_variables_group_names.j2
dest: "{{ dump_vars_log_dir }}/dump_variables_group_names.json"
become: true
dest: "{{ dump_vars_log_dir }}/dump_variables_group_names.yaml"
- name: generate dump_variables_groups script
template:
src: dump_variables_groups.j2
dest: "{{ dump_vars_log_dir }}/dump_variables_groups.json"
become: true
dest: "{{ dump_vars_log_dir }}/dump_variables_groups.yaml"
- name: generate dump_variables_hostvars script
template:
src: dump_variables_hostvars.j2
dest: "{{ dump_vars_log_dir }}/dump_variables_hostvars.json"
become: true
dest: "{{ dump_vars_log_dir }}/dump_variables_hostvars.yaml"

View File

@ -1 +1 @@
{{ environment | to_nice_json }}
{{ environment | to_nice_yaml }}

View File

@ -1 +1 @@
{{ group_names | to_nice_json }}
{{ group_names | to_nice_yaml }}

View File

@ -1 +1 @@
{{ groups | to_nice_json }}
{{ groups | to_nice_yaml }}

View File

@ -1 +1 @@
{{ hostvars | to_nice_json }}
{{ hostvars | to_nice_yaml }}

View File

@ -1 +1 @@
{{ vars | to_nice_json }}
{{ vars | to_nice_yaml }}