From 7121be7daadc891ea7f441bb1c9ad1af79b9cc6f Mon Sep 17 00:00:00 2001 From: juju4 Date: Sat, 4 Apr 2020 15:31:51 -0400 Subject: [PATCH] review: uh_public_key --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index dfc7d03..3d35b76 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -135,12 +135,12 @@ shell: "cat {{ wireguard_remote_directory }}/{{ item.host }}-privatekey | wg pubkey | tee {{ wireguard_remote_directory }}/{{ item.host }}-pubkey" args: creates: "{{ wireguard_remote_directory }}/{{ item.host }}-pubkey" - register: uh_pubkey + register: uh_public_key with_items: "{{ wireguard_unmanaged_hosts | default([]) }}" - name: Recover existing public key for unmanaged hosts shell: "cat {{ wireguard_remote_directory }}/{{ item.host }}-pubkey" - register: uh_pubkey + register: uh_public_key changed_when: false with_items: "{{ wireguard_unmanaged_hosts | default([]) }}" when: wireguard_unmanaged_hosts is defined and wireguard_unmanaged_hosts