- name: copy over ipv6 kernel configuration copy: src={{ item.src }} dest={{ item.dest }} with_items: - { src: '10-ipv6.conf', dest: '/etc/sysctl.d/10-ipv6.conf' } - name: update ipv6 kernel configuration command: 'sysctl -w net.ipv6.conf.all.autoconf=0 net.ipv6.conf.default.autoconf=0 net.ipv6.conf.all.accept_ra=0 net.ipv6.conf.default.accept_ra=0 net.ipv6.conf.all.use_tempaddr=0 net.ipv6.conf.default.use_tempaddr=0'