Fix: Resolve undefined wireguard variable in client gen playbook
This commit is contained in:
@@ -7,9 +7,7 @@
|
|||||||
vars:
|
vars:
|
||||||
user: matej
|
user: matej
|
||||||
IP: "{{ vars['wireguard-client'][user]['ip'] }}"
|
IP: "{{ vars['wireguard-client'][user]['ip'] }}"
|
||||||
#IP: "{{ lookup('ansible.builtin.vars', 'wireguard.' + user + '.ip') }}"
|
|
||||||
priv: "{{ vars['wireguard-client-vault'][user]['pub'] }}"
|
priv: "{{ vars['wireguard-client-vault'][user]['pub'] }}"
|
||||||
#priv: "{{ lookup('ansible.builtin.vars', 'wireguard.' + user + '.key') }}"
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Copy from template
|
- name: Copy from template
|
||||||
|
|||||||
Reference in New Issue
Block a user