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
This commit is contained in:
parent
114521ccba
commit
30c619d1bc
ansible/roles
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user