diff --git a/ansible/roles/eos/files/rc.eos b/ansible/roles/eos/files/rc.eos new file mode 100755 index 00000000000..e640eed2272 --- /dev/null +++ b/ansible/roles/eos/files/rc.eos @@ -0,0 +1,8 @@ +#!/bin/sh + +echo '# Disable IPv6 DAD' >> /etc/sysctl.conf + +echo 'net.ipv6.conf.all.accept_dad = 0' >> /etc/sysctl.conf +echo 'net.ipv6.conf.default.accept_dad = 0' >> /etc/sysctl.conf + +/sbin/sysctl -p diff --git a/ansible/roles/eos/tasks/main.yml b/ansible/roles/eos/tasks/main.yml index 50a148ac7be..3d7f2bc3e6c 100644 --- a/ansible/roles/eos/tasks/main.yml +++ b/ansible/roles/eos/tasks/main.yml @@ -46,6 +46,13 @@ with_items: properties_list when: hostname in configuration and configuration_properties[item] is defined +- name: copy rc.eos + copy: src=rc.eos + dest=/mnt/flash/rc.eos + when: hostname in configuration + notify: + - Update VM state + - name: copy boot-config copy: src=boot-config dest=/mnt/flash/boot-config