|
@@ -13,7 +13,7 @@ curl -o /home/ansible/.ssh/authorized_keys https://git.xo.nl/marcel/deployment/r
|
|
chown -R ansible:Ansible /home/ansible/.ssh
|
|
chown -R ansible:Ansible /home/ansible/.ssh
|
|
echo "Enabling IPv6"
|
|
echo "Enabling IPv6"
|
|
sed -i '/net.ipv6.conf.all.disable_ipv6.*/d' /etc/sysctl.conf && sysctl -q -p && echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6
|
|
sed -i '/net.ipv6.conf.all.disable_ipv6.*/d' /etc/sysctl.conf && sysctl -q -p && echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6
|
|
-if [[ "$(ip -br link | grep -v UNKNOWN | grep -v DOWN | grep -v veth | grep -v br | awk '{ print $1 }')" != "eth1" ]]
|
|
|
|
|
|
+if [[ "$(ip -br link | grep -v UNKNOWN | grep -v DOWN | grep -v veth | grep -v br | awk '{ print $1 }')" != "eth0" ]]
|
|
then
|
|
then
|
|
echo "Configure GRUB"
|
|
echo "Configure GRUB"
|
|
sed -i 's/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"net.ifnames=0 /' /etc/default/grub
|
|
sed -i 's/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"net.ifnames=0 /' /etc/default/grub
|