Factor out password store retrieval
This commit is contained in:
parent
973522c373
commit
f10d94612f
7 changed files with 18 additions and 21 deletions
|
@ -19,3 +19,7 @@
|
|||
set_fact:
|
||||
cluster_services: '{{ (cluster_services|default([])) + query("netbox.netbox.nb_lookup", "services", raw_data=true, api_filter="id="+item) }}'
|
||||
loop: '{{ cluster.custom_fields.services | map(attribute="id") | map("string") }}'
|
||||
|
||||
- name: Fetch passwords
|
||||
set_fact:
|
||||
password: '{{ lookup("passwordstore", ("vm/" if is_virtual else "host/")~inventory_hostname, returnall=true) | from_yaml }}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue