1
0
Fork 0

review: uh_public_key

This commit is contained in:
juju4 2020-04-04 15:31:51 -04:00
parent 1894bf07dd
commit 7121be7daa

View file

@ -135,12 +135,12 @@
shell: "cat {{ wireguard_remote_directory }}/{{ item.host }}-privatekey | wg pubkey | tee {{ wireguard_remote_directory }}/{{ item.host }}-pubkey" shell: "cat {{ wireguard_remote_directory }}/{{ item.host }}-privatekey | wg pubkey | tee {{ wireguard_remote_directory }}/{{ item.host }}-pubkey"
args: args:
creates: "{{ wireguard_remote_directory }}/{{ item.host }}-pubkey" creates: "{{ wireguard_remote_directory }}/{{ item.host }}-pubkey"
register: uh_pubkey register: uh_public_key
with_items: "{{ wireguard_unmanaged_hosts | default([]) }}" with_items: "{{ wireguard_unmanaged_hosts | default([]) }}"
- name: Recover existing public key for unmanaged hosts - name: Recover existing public key for unmanaged hosts
shell: "cat {{ wireguard_remote_directory }}/{{ item.host }}-pubkey" shell: "cat {{ wireguard_remote_directory }}/{{ item.host }}-pubkey"
register: uh_pubkey register: uh_public_key
changed_when: false changed_when: false
with_items: "{{ wireguard_unmanaged_hosts | default([]) }}" with_items: "{{ wireguard_unmanaged_hosts | default([]) }}"
when: wireguard_unmanaged_hosts is defined and wireguard_unmanaged_hosts when: wireguard_unmanaged_hosts is defined and wireguard_unmanaged_hosts