Skip to content

support multiple extra_vars in ansible #9043

@luto

Description

@luto

Vagrant version

Vagrant 2.0.0

Expected behavior

Ansible will happily accept multiple --extra-vars arguments:

[luto@luto dir]$ ansible --extra-vars 'a=43' --extra-vars 'b=42' -m debug -a var=b all
asteroid | SUCCESS => {
    "b": "42"
}

ansible.extra_vars is currently only able to accept a single filename or a single hash. Are you interested in changing this in a backwards compatible way, so ansible.extra_vars accepts a filename, a hash or a list of either? I'd be happy to prepare a PR.

This would enable Ansible users to overwrite values given in a file easily. It's also possible to split up variables into a set that is applicable always, and a set that is applicable for a specific provider or box.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions