From 1c6ef348632d339e58d3897f5f95ad0457e484b3 Mon Sep 17 00:00:00 2001 From: juju4 Date: Sat, 4 Apr 2020 15:35:01 -0400 Subject: [PATCH] shell: with bash --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) 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([]) }}"