diff --git a/tasks/os.yml b/tasks/os.yml index a8f5533..fc8aa1f 100644 --- a/tasks/os.yml +++ b/tasks/os.yml @@ -9,7 +9,7 @@ when: ansible_default_ipv6.address is not defined block: - name: Enable IPv6 via sysctl - sysctl: + ansible.posix.sysctl: name: "{{ item }}" value: 0 state: present diff --git a/tasks/pdns_recursor.yml b/tasks/pdns_recursor.yml index e62c991..08fc260 100644 --- a/tasks/pdns_recursor.yml +++ b/tasks/pdns_recursor.yml @@ -57,7 +57,7 @@ when: 'public_dns == "yes"' notify: Restart pdns-recursor - name: Set IPv6 route size - sysctl: + ansible.posix.sysctl: name: net.ipv6.route.max_size value: 16384 state: present # not required. choices: present;absent. Whether the entry should be present or absent in the sysctl file. diff --git a/tasks/wireguard.yml b/tasks/wireguard.yml index 5faf9e7..4be781c 100644 --- a/tasks/wireguard.yml +++ b/tasks/wireguard.yml @@ -21,7 +21,7 @@ - iptable_nat - ip6table_nat - name: Set sysctl variables - sysctl: + ansible.posix.sysctl: name: "{{ item }}" value: 1 state: present # not required. choices: present;absent. Whether the entry should be present or absent in the sysctl file.