facts: don’t write passwords to stdout
This commit is contained in:
parent
e6876ff265
commit
7cbbf635a8
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
set_fact:
|
set_fact:
|
||||||
password: '{{ lookup("passwordstore", ("vm/" if is_virtual else "host/")~inventory_hostname, returnall=true, missing="empty") | from_yaml }}'
|
password: '{{ lookup("passwordstore", ("vm/" if is_virtual else "host/")~inventory_hostname, returnall=true, missing="empty") | from_yaml }}'
|
||||||
|
no_log: true
|
||||||
|
|
||||||
# Make expensive lookups to NetBox once for later reference by any host.
|
# Make expensive lookups to NetBox once for later reference by any host.
|
||||||
- when: lookup("env", "NETBOX_API") != ""
|
- when: lookup("env", "NETBOX_API") != ""
|
||||||
|
|
Loading…
Reference in a new issue