-
Create an empty file to prevent the service from starting
sudo touch /etc/cloud/cloud-init.disabled
-
Disable all services (uncheck everything except "None"):
sudo dpkg-reconfigure cloud-init
-
Uninstall the package and delete the folders
sudo dpkg-reconfigure cloud-init sudo apt-get purge cloud-init sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
-
Restart the computer
sudo reboot
Hello everyone!
I just wanted to inform you that I've created a bash script designed to automate the process of disabling cloud-init on Ubuntu servers. It's a quick and simple solution you can even call through a oneliner.
GitHub Repo: disable-cloud-init
Give it a try and let me know your thoughts! Your feedback is highly appreciated.