From 9fdff34724c258b0ba0219b5018cd5f913bc8174 Mon Sep 17 00:00:00 2001 From: Stefan Grosser <13567009+Bierchermuesli@users.noreply.github.com> Date: Thu, 14 Nov 2024 18:03:05 +0100 Subject: [PATCH 1/2] remove netaddr dependency --- defaults/main/0_hardcoded.yml | 3 +-- tasks/main.yml | 17 ----------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/defaults/main/0_hardcoded.yml b/defaults/main/0_hardcoded.yml index df8c4ae..b6a715f 100644 --- a/defaults/main/0_hardcoded.yml +++ b/defaults/main/0_hardcoded.yml @@ -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' \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index 240ecb5..c04541b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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']" From 9447a4f4fcc4a078a2202795cd08f98dee455d1f Mon Sep 17 00:00:00 2001 From: Stefan Grosser <13567009+Bierchermuesli@users.noreply.github.com> Date: Thu, 14 Nov 2024 21:56:56 +0100 Subject: [PATCH 2/2] requirements.txt not needed anymore --- requirements.txt | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 610ae31..0000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -# pip requirements -netaddr \ No newline at end of file