diff --git a/tasks/main.yml b/tasks/main.yml index 3d35b76..033ed80 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -135,6 +135,7 @@ 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" + executable: "/bin/bash" register: uh_public_key with_items: "{{ wireguard_unmanaged_hosts | default([]) }}"