Skip to content

Add a way to pass extra variables to ansible-local provisioner #555

@pas256

Description

@pas256

This is for @kelseyhightower and the ansible-local provisioner:

ansible-playbook has an option to pass extra variables along from the command line:

-e EXTRA_VARS, --extra-vars=EXTRA_VARS
                    set additional variables as key=value or YAML/JSON

When using the amazon-chroot builder, it is important to not start any services (e.g. Apache) inside the chroot environment so that the volume can be unmounted correctly. I write my playbooks so that they can be run on both running instances, as well as to build AMIs, and I do that as a flag I pass in a AMI creation time. Right now, there is no way for me to pass that flag to the ansible-local provisioner.

Please let me know if there is anything else you need.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions