facts: don’t barf on missing passwords

Not everything needs them.
This commit is contained in:
Timotej Lazar 2024-09-27 14:02:39 +02:00
parent 6c817624bc
commit 1f5d2f6238

View file

@ -22,4 +22,4 @@
- name: Fetch passwords
set_fact:
password: '{{ lookup("passwordstore", ("vm/" if is_virtual else "host/")~inventory_hostname, returnall=true) | from_yaml }}'
password: '{{ lookup("passwordstore", ("vm/" if is_virtual else "host/")~inventory_hostname, returnall=true, missing="empty") | from_yaml }}'