access: fix password store subdirectory for switches

This commit is contained in:
Timotej Lazar 2024-04-05 12:00:22 +02:00
parent 7ef4023424
commit f489555ba1

View file

@ -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