access: move secrets to password store
Keeping ansible-vault values in NetBox is too cumbersome and limited.
This commit is contained in:
parent
91afaec9c2
commit
27dac09549
|
@ -1,3 +1,7 @@
|
|||
- name: Get switch password
|
||||
set_fact:
|
||||
ansible_ssh_pass: '{{ lookup("passwordstore", "hosts/"~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
|
||||
- name: Fetch configuration from netbox
|
||||
|
|
Loading…
Reference in a new issue