From 0789d46ccb66874323e1ac11e1353ae025eaff30 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Thu, 6 Apr 2023 20:34:26 +0300 Subject: [PATCH] replace new lines --- tasks/configure.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 4e1ec62..0c28c73 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -46,7 +46,7 @@ path: "/var/lib/from_repos/wireguard_peers/{{ interface_name }}/{{ inventory_hostname }}.conf" section: Peer option: PublicKey - value: "{{ public_key }}" + value: "{{ public_key | replace('\n', '')}}" create: true backup: true @@ -73,7 +73,7 @@ args: chdir: '/var/lib/from_repos/wireguard_peers/' -- name: Ensure Wireguard client is configure +- name: Ensure Wireguard client is configured shell: "/var/lib/from_repos/wireguard_peers/update_configuration.sh '${vpnes_ip}' '${vpnes_port}'" - name: Restart Wireguard service @@ -83,7 +83,7 @@ enabled: yes daemon_reload: yes -# - name: Ensure Wireguard client is configure +# - name: Ensure Wireguard client is configured # template: # src: templates/wireguard_client.conf # dest: "/etc/wireguard/{{ interface_name }}.conf"