https://cloudinit.readthedocs.io/en/latest/reference/modules.html#ansible
In our case, we may not want to install ansible during boot as its a heavy operation, as we cant know if even python is on the image.
But, we could do:
- check if ansible is available
- check if git is available (if we are asking to pull a remote playbook)
- run ansible
If ansible is not there:
- check if pip is available in the system
- check if git is available (if we are asking to pull a remote playbook)
- install ansible via pip to a tmp dir
- run ansible from there
I think we could start small with the pluging and build on top of it.
something like
stages:
boot:
ansible:
pull:
url: https://github.com/holmanb/vmboot.git
playbook_name: ubuntu.yml
as a start would be good
https://cloudinit.readthedocs.io/en/latest/reference/modules.html#ansible
In our case, we may not want to install ansible during boot as its a heavy operation, as we cant know if even python is on the image.
But, we could do:
If ansible is not there:
I think we could start small with the pluging and build on top of it.
something like
as a start would be good