Skip to content

Commit

Permalink
Merge pull request #4 from Bierchermuesli/latest
Browse files Browse the repository at this point in the history
remove netaddr dependency
  • Loading branch information
ansibleguy authored Dec 24, 2024
2 parents 3251e1f + 9447a4f commit 34445b3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
3 changes: 1 addition & 2 deletions defaults/main/0_hardcoded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ WG_HC:
default_routing_metric: 100
default_keepalive: 5
log_output_lines: 10
wg_svc: 'wg-quick'
controller_required_mods: ['netaddr']
wg_svc: 'wg-quick'

Check failure on line 26 in defaults/main/0_hardcoded.yml

View workflow job for this annotation

GitHub Actions / build

26:21 [new-line-at-end-of-file] no new line character at the end of file
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

17 changes: 0 additions & 17 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,6 @@
when: "inventory_hostname not in wireguard.topologies | flatten_hosts"
tags: [purge, tunnels, config]

- name: Wireguard | Installing dependencies on controller
ansible.builtin.pip:
name: "{{ WG_HC.controller_required_mods }}"
state: present
delegate_to: localhost
register: install_controller_requirements
ignore_errors: true
become: false
run_once: true

- name: Wireguard | Missing dependency
ansible.builtin.fail:
msg: "You need to install the python module 'netaddr' for this role to work correctly!"
when:
- install_controller_requirements.failed is defined
- install_controller_requirements.failed

- name: Wireguard | Processing debian config
ansible.builtin.import_tasks: debian/main.yml
when: "ansible_distribution|lower in ['debian', 'ubuntu']"

0 comments on commit 34445b3

Please sign in to comment.