Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support ansible module #179

Open
Itxaka opened this issue Oct 7, 2024 · 0 comments
Open

support ansible module #179

Itxaka opened this issue Oct 7, 2024 · 0 comments

Comments

@Itxaka
Copy link
Collaborator

Itxaka commented Oct 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant