Feature #22512
closedPass Host parameters without foreman_params
Description
If you decide to use Ansible variables ({{ variable }}) on JobTemplates, with http://projects.theforeman.org/issues/22510 it should substitute the variable in the playbook by the HostParameter in Foreman.
However, it doesn't. We send Host Parameters to playbooks in a hash 'foreman_params', so in the playbook they would need to change their variables to 'foreman_params['variable']'.
This is a blocker for people who may want to import their playbooks into Foreman, as I doubt people would like to change all of their variables by 'foreman_params'.
If we serve 'foreman_params['variable']' as just 'variable', that would work and users would be able to use playbooks directly without any change.
This should be configurable in case some people prefer the old behavior of prefixing 'foreman_params'.
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Daniel Lobato Garcia
- Pull request https://github.com/theforeman/foreman_ansible/pull/125 added
Updated by Anonymous about 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_ansible|4b719549a3d097a93d78b95ac6a1493a2660ac86.