From f489555ba1ca0284735e3b2891c3d4a8f1ff6ad9 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 5 Apr 2024 12:00:22 +0200 Subject: [PATCH] access: fix password store subdirectory for switches --- roles/access/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/access/tasks/main.yml b/roles/access/tasks/main.yml index 538474c..e259f31 100644 --- a/roles/access/tasks/main.yml +++ b/roles/access/tasks/main.yml @@ -1,6 +1,6 @@ - name: Get switch password set_fact: - ansible_ssh_pass: '{{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="pass") }}' + ansible_ssh_pass: '{{ lookup("passwordstore", "switch/"~inventory_hostname, subkey="pass") }}' # This should be provided by the netbox inventory plugin but isn’t yet. # https://github.com/netbox-community/ansible_modules/issues/1007