Refactor: Use lookup for var access in client gen
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
- ../../group_vars/all.yml
|
||||
vars:
|
||||
user: matej
|
||||
IP: "{{ vars['wireguard-client'][user]['ip'] }}"
|
||||
priv: "{{ vars['wireguard-client-vault'][user]['pub'] }}"
|
||||
IP: "{{ lookup('vars', 'wireguard-client')[user]['ip'] }}"
|
||||
priv: "{{ lookup('vars', 'wireguard-client-vault')[user]['pub'] }}"
|
||||
|
||||
tasks:
|
||||
- name: Copy from template
|
||||
|
||||
Reference in New Issue
Block a user