Project

General

Profile

Actions

Feature #18671

closed

Option to provide Foreman params without containing dictionary

Added by Josh Benner almost 8 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

host-params-ansible.png View host-params-ansible.png 56.3 KB Ondřej Pražák, 04/23/2019 09:53 AM
test-playbook.png View test-playbook.png 18.3 KB Ondřej Pražák, 04/23/2019 09:53 AM
playbook-output.png View playbook-output.png 44.7 KB Ondřej Pražák, 04/23/2019 09:53 AM
Actions

Also available in: Atom PDF