Removed dependencies to posix/utils and unused tests

This commit is contained in:
syrell 2023-03-15 22:44:06 +01:00
parent 0c76cd5b44
commit 2fd69c736b
Signed by: syrell
GPG Key ID: BC9570E849334AF9
4 changed files with 4 additions and 11 deletions

View File

@ -1,2 +0,0 @@
localhost

View File

@ -1,5 +0,0 @@
---
- hosts: localhost
remote_user: root
roles:
- docker

View File

@ -17,7 +17,7 @@
- name: Setup ipv4 IP forward
ansible.posix.sysctl:
sysctl:
name: net.ipv4.ip_forward
value: '1'
sysctl_set: true

View File

@ -1,6 +1,6 @@
---
# vars file for wireguard
_wireguard_interface_addr: "{{ ansible_default_ipv4.address | default(ansible_all_ipv4_addresses[0]) }}/{{ ansible_default_ipv4.netmask }}"
wireguard_server_ip: "{{ wireguard_address | ansible.utils.ipaddr('network') | ansible.utils.ipmath(1) }}"
wireguard_subnetmask: "{{ wireguard_address | ansible.utils.ipaddr('prefix') }}"
wireguard_peers_allowed_ips: "{{ ([(_wireguard_interface_addr | ansible.utils.ipaddr('network/prefix'))] + (wireguard_additional_routes | default([]))) | join(\", \") }}"
wireguard_server_ip: "{{ wireguard_address | ipaddr('network') | ipmath(1) }}"
wireguard_subnetmask: "{{ wireguard_address | ipaddr('prefix') }}"
wireguard_peers_allowed_ips: "{{ ([(_wireguard_interface_addr | ipaddr('network/prefix'))] + (wireguard_additional_routes | default([]))) | join(\", \") }}"