From bcc6b9b6afe0938e8d2a57cc1820c75bfae777ce Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Wed, 3 Jul 2024 21:07:44 +0200 Subject: [PATCH] add symlink to wg-config-gen --- roles/wireguardexit/tasks/install.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/wireguardexit/tasks/install.yml b/roles/wireguardexit/tasks/install.yml index f6a1ed5..cc1aa0d 100644 --- a/roles/wireguardexit/tasks/install.yml +++ b/roles/wireguardexit/tasks/install.yml @@ -12,6 +12,12 @@ - name: Run inital config generation ansible.builtin.command: python3 /opt/wg-conf-gen/wg-conf-gen.py create --pk {{ wg_pk }} --address {{ wg_address }} --country {{ wg_country }} --city {{ wg_city }} --device "{{ wg_device| default('Unkown') }}" +- name: Create symbolic link for wg-conf-gen.py + ansible.builtin.file: + src: /opt/wg-conf-gen/wg-conf-gen.py + dest: /usr/local/bin/wg-conf-gen + state: link + - name: Re-start and enable wireguard service ansible.builtin.systemd: enabled: true