Ansible Role cloud_init¶
This role removes the cloud-init package and cleans up artifacts that the package leaves behind.
Concretely, the role:
Removes the
cloud-initpackage via the OS package manager.Removes
/etc/NetworkManager/conf.d/99-cloud-init.confso NetworkManager stops managing/etc/resolv.confon its behalf.Removes
/etc/cloud/cloud.cfg.rpmsaveleft over from the package removal.
Depending on the cloud provider, cloud-init changes SSH security settings, which we do not want. Note that removing cloud-init may break first-boot integrations of the cloud provider (metadata, SSH key injection, hostname provisioning, …). Run this role only on hosts that have already been provisioned, or on installations where you do not rely on cloud-init at all.
Available since LFOps 2.0.0.