ansible-playbooks/roles/static-ipv6/tasks/main.yml

8 lines
435 B
YAML
Raw Normal View History

2016-11-28 18:52:46 -05:00
- 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'