From 1f5d2f6238187b7870741734df0a855201966bd0 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 27 Sep 2024 14:02:39 +0200 Subject: [PATCH] =?UTF-8?q?facts:=20don=E2=80=99t=20barf=20on=20missing=20?= =?UTF-8?q?passwords?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not everything needs them. --- roles/facts/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/facts/tasks/main.yml b/roles/facts/tasks/main.yml index d34a6a7..f49d5ff 100644 --- a/roles/facts/tasks/main.yml +++ b/roles/facts/tasks/main.yml @@ -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 }}'