diff --git a/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 b/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 index 4b90a41cc..9b1ef912c 100644 --- a/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 +++ b/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 @@ -1,5 +1,8 @@ #!/bin/bash +# Disable ipv6 +sysctl -w net.ipv6.conf.all.disable_ipv6=1 + # Update Linux /usr/bin/apt-get -y update /usr/bin/apt-get dist-upgrade -y -o Dpkg::Options::="--force-confnew"