I was putting the following in /etc/sysctl.conf in Ubuntu 16.04 and ipv6 was disabled.
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
In Ubuntu 18.04 I have to add the following to grub.
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
Just wanted to have confirmation whether this is the new way in Ubuntu 18.04 to disable IPv6.