---
- name: "sysctl disable_ipv6"
  sysctl:
    name: "{{ item }}"
    value: '1'
    state: present
  with_items:
    - net.ipv6.conf.all.disable_ipv6
    - net.ipv6.conf.default.disable_ipv6
    - vm.swappiness