diff --git a/roles/docker/tests/inventory b/roles/docker/tests/inventory deleted file mode 100644 index 878877b..0000000 --- a/roles/docker/tests/inventory +++ /dev/null @@ -1,2 +0,0 @@ -localhost - diff --git a/roles/docker/tests/test.yml b/roles/docker/tests/test.yml deleted file mode 100644 index 7aabdb0..0000000 --- a/roles/docker/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - docker diff --git a/roles/wireguard/tasks/firewall.yml b/roles/wireguard/tasks/firewall.yml index bb3043c..dbc906b 100644 --- a/roles/wireguard/tasks/firewall.yml +++ b/roles/wireguard/tasks/firewall.yml @@ -17,7 +17,7 @@ - name: Setup ipv4 IP forward - ansible.posix.sysctl: + sysctl: name: net.ipv4.ip_forward value: '1' sysctl_set: true diff --git a/roles/wireguard/vars/main.yml b/roles/wireguard/vars/main.yml index a776b8f..20d4972 100644 --- a/roles/wireguard/vars/main.yml +++ b/roles/wireguard/vars/main.yml @@ -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(\", \") }}" \ No newline at end of file +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(\", \") }}" \ No newline at end of file