Feature #18671
closedOption to provide Foreman params without containing dictionary
Description
Currently, when running from the Foreman UI, Foreman params are exposed via a 'foreman_params' dictionary.
I'd like to write and use generic roles that have no special knowledge of foreman, and when running roles directly from Foreman, I don't have an opportunity to map foreman_params values onto role values.
Instead, I'd like the option to pass the params directly at the top of the inventory. Perhaps a global setting?
Relevant code: https://github.com/theforeman/foreman_ansible/blob/master/app/services/foreman_ansible/inventory_creator.rb#L32
Files
Updated by Ondřej Pražák over 5 years ago
- File host-params-ansible.png host-params-ansible.png added
- File test-playbook.png test-playbook.png added
- File playbook-output.png playbook-output.png added
- Status changed from New to Resolved
Thank you for your feature request, I think this is fixed by #26068.
It is now possible to have host parameters and use them directly as the screenshots show. I will close but feel free to reopen if I misunderstood or the new inventory structure does not work for you.