diff --git a/playbooks/sysctl.yml b/playbooks/sysctl.yml new file mode 100644 index 0000000..a5e08af --- /dev/null +++ b/playbooks/sysctl.yml @@ -0,0 +1,14 @@ +- name: apply kernel attributes + hosts: apache-intranet + become: true + + tasks: + - name: disable ipv6 + ansible.posix.sysctl: + name: "{{ item }}" + value: "1" + state: present + reload: true + loop: + - net.ipv6.conf.all.disable_ipv6 + - net.ipv6.conf.default.disable_ipv6 \ No newline at end of file