clusterinthecloud / ansible

Ansible config for Cluster in the Cloud
https://cluster-in-the-cloud.readthedocs.io
MIT License
10 stars 27 forks source link

Build compute image from local Ansible playbook #111

Closed milliams closed 3 years ago

milliams commented 3 years ago

Currently the image for the compute nodes is built, via packer, by invoking ansible-pull. This will always grab the latest version of the playbook from Git. We pin the branch to the same one as the management node was built from, but this requires care for compatibility on the branch.

This PR changes how Ansible is run by using Packer to to invoke ansible-playbook on the compute image which loads from the version of the playbook physically sitting on the management node. This ensures that they are always identical unless the admin explicitly updates them.