Skip to content

support ansible module #179

Description

@Itxaka

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions