Get foreman parameters in ansible without running in foreman

Hi,

I would like to know if there is a way to use foreman parameters in ansible without running the role out of foreman

the reverse direction, adding hosts to foreman with ansible callback works perfectly fine

thanks in advance!

You can use foreman/satellite6 as an inventory source in ansible.

The foreman params, and foreman facts will all be part of the inventory and available on each host.

thanks, works perfectly fine!

source: https://docs.ansible.com/ansible/latest/collections/theforeman/foreman/foreman_inventory.html#ansible-collections-theforeman-foreman-foreman-inventory