pcuzner / ansible-runner-service

Python project that wraps the ansible_runner 'engine' inside a RESTful API
Other
16 stars 9 forks source link

if the inventory/hosts definition contains an empty group the run fails #27

Open pcuzner opened 6 years ago

pcuzner commented 6 years ago

Environment

With an empty group definition, playbooks fail to match hosts

example hosts file (inventory/hosts)

all:
  children:
    dummy:
      hosts:
    osds:
      hosts:
        con-1:
        con-2:
        con-3:

With this configuration, the probe-disks.yml playbook starts and completes, but fails to find a matching host - even though it specifies the osds group. Once the dummy group is removed, the playbook works!

Daniel-Pivonka commented 6 years ago

This seems to be a problem with ansible in general. Our tool and ansible-runner are just inheriting the issue it appears.

pcuzner commented 6 years ago

+1