Skip to content

Commit

Permalink
add symlink to wg-config-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Grotax committed Jul 3, 2024
1 parent 1b4ddfb commit bcc6b9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/wireguardexit/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
- name: Run inital config generation

Check warning on line 12 in roles/wireguardexit/tasks/install.yml

View workflow job for this annotation

GitHub Actions / build

jinja[spacing]

Jinja2 spacing could be improved: 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') }}" -> 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') }}"

Check failure on line 12 in roles/wireguardexit/tasks/install.yml

View workflow job for this annotation

GitHub Actions / build

no-changed-when

Commands should not change things if nothing needs doing.
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') }}"

Check failure on line 13 in roles/wireguardexit/tasks/install.yml

View workflow job for this annotation

GitHub Actions / build

yaml[line-length]

Line too long (211 > 160 characters)

- 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
Expand Down

0 comments on commit bcc6b9b

Please sign in to comment.