facts: don’t write passwords to stdout

This commit is contained in:
Timotej Lazar 2025-05-13 11:09:02 +02:00
parent e6876ff265
commit 7cbbf635a8

View file

@ -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") != ""