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