shell: with bash
This commit is contained in:
parent
d1942b7ffd
commit
1c6ef34863
|
@ -135,6 +135,7 @@
|
||||||
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"
|
||||||
|
executable: "/bin/bash"
|
||||||
register: uh_public_key
|
register: uh_public_key
|
||||||
with_items: "{{ wireguard_unmanaged_hosts | default([]) }}"
|
with_items: "{{ wireguard_unmanaged_hosts | default([]) }}"
|
||||||
|
|
||||||
|
|
Reference in a new issue