Skip to content
Snippets Groups Projects
Unverified Commit 30c619d1 authored by Jason's avatar Jason Committed by Jason Anderson
Browse files

Hide logs when looping over passwords

When ansible goes in to a loop, by default it prints all the keys for
the item it is looping over. Some roles, when setting up the databases,
iterate over an object that includes the database password.

Override the loop label to hide everything but the database name.

Change-Id: I336a81a5ecd824ace7d40e9a35942a1c853554cd
parent 114521cc
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,8 @@
database_user: "{{ ironic_inspector_database_user }}"
database_password: "{{ ironic_inspector_database_password }}"
group: "ironic-inspector"
loop_control:
label: "{{ item.database_name }}"
when:
- not use_preconfigured_databases | bool
- inventory_hostname in groups[item.group]
......
......@@ -41,6 +41,8 @@
- database_name: "{{ nova_api_database_name }}"
database_username: "{{ nova_api_database_user }}"
database_password: "{{ nova_api_database_password }}"
loop_control:
label: "{{ item.database_name }}"
run_once: True
delegate_to: "{{ groups['nova-api'][0] }}"
when:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment