3 ms·
generally speaking - ansible is not used for clouds. Especially if ur leveraging things like spot instances, etc. Because ansible needs a trigger to start conf
by sandGorgon 5y ago
generally speaking - ansible is not used for clouds. Especially if ur leveraging things like spot instances, etc.
Because ansible needs a trigger to start configuring the server.
The most general practice now is to use cloud-init (https://cloudinit.readthedocs.io/en/latest/ https://cloudinit.readthedocs.io/en/latest/)
For example, this is how u set it up on AWS - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html#user-data-cloud-init https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-dat...
i think cloud-init is packaged by default on all providers OS images.