Merge "Help debugging tobiko-configure role with better output"

This commit is contained in:
Zuul 2020-03-23 13:52:37 +00:00 committed by Gerrit Code Review
commit cc31df67ef
1 changed files with 4 additions and 13 deletions

View File

@ -14,13 +14,6 @@
sections: "{{ default_conf | combine(conf, recursive=True) }}" sections: "{{ default_conf | combine(conf, recursive=True) }}"
- name: "show tobiko configuration"
debug:
msg: |
Tobiko configuration:
{{ conf_yaml }}
- name: "generate '{{ conf_file }}' file" - name: "generate '{{ conf_file }}' file"
ini_file: ini_file:
path: "{{ conf_file }}" path: "{{ conf_file }}"
@ -35,15 +28,13 @@
loop: "{{ conf_yaml | from_yaml | list }}" loop: "{{ conf_yaml | from_yaml | list }}"
- name: "read {{ conf_file }} file" - name: "read resulting {{ conf_file }} file"
slurp: command: "cat '{{ conf_file }}'"
src: "{{ conf_file }}"
register: read_conf_file register: read_conf_file
- name: "show {{ conf_file }} file" - name: "show resulting '{{ conf_file }}' file"
debug: debug: var=read_conf_file.stdout_lines
msg: "{{ read_conf_file['content'] | b64decode }}"
# TODO (fressi): move it to a Tobiko python fixture # TODO (fressi): move it to a Tobiko python fixture