Merge lp://staging/~wesmason/charm-helpers/ansible-map-extra-vars into lp://staging/charm-helpers
Proposed by
Wes Mason
Status: | Approved |
---|---|
Approved by: | Simon Davy |
Approved revision: | 363 |
Proposed branch: | lp://staging/~wesmason/charm-helpers/ansible-map-extra-vars |
Merge into: | lp://staging/charm-helpers |
Diff against target: |
104 lines (+48/-5) 2 files modified
charmhelpers/contrib/ansible/__init__.py (+18/-5) tests/contrib/ansible/test_ansible.py (+30/-0) |
To merge this branch: | bzr merge lp://staging/~wesmason/charm-helpers/ansible-map-extra-vars |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Simon Davy | Approve | ||
charmers | Pending | ||
Review via email: mp+256799@code.staging.launchpad.net |
Commit message
Add the ability to pass config values as extra-vars to Ansible.
Description of the change
This adds an extra param to AnsibleHooks to allow mapping config values onto `--extra-vars` arguments passed to ansible, to ensure the variable is also available in a "local" context, such as the one lookup plugins (e.g. `{{ lookup('template', 'templates/
To post a comment you must log in.