ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.04k stars 3.42k forks source link

[Foreman Inventory] satellite6_want_ansible_ssh_host #6822

Closed jladdjr closed 4 years ago

jladdjr commented 4 years ago

Believe this can be achieved with:

if want_ansible_ssh_host:
             ret['compose'] = {'ansible_ssh_host': "foreman['ip6'] | default(foreman['ip'], true)"}
kdelee commented 4 years ago

Works for me, adding some coverage downstream