Small bug

Hi
I would have added this to the issues list in github but could not find it…

If I run:

ansible-playbook playbooks/build-auth-main.yml

I get:

PLAY [auth01.clean.io] ****************************

SETUP PHASE ****************************

TASK: [Ensure 389 Directory Server is installed] *********

PLAY RECAP **********************

Now looking at that you would assume everything is working perfectly and the software is installed. You would be wrong though. The hosts file variable has not been set and ansible should warn you that you are running playbook that mentions hosts it knows nothing about.

Regards

Yep.

Ansible-playbook shouldn’t warn it didn’t match any hosts, because what you specified could be a wildcard instead of a host name. Rather, it should probably just remind you no hosts were matched. (It’s not an error condition, but a warning)

I don’t know what you mean by “the host file variable has not been set” … it most definitely did load a host file, maybe nothing was in it or the pattern didn’t match. It will yell if you request to load a host file that doesn’t exist (either with -i or ANSIBLE_HOSTS as an environment variable)

Bug tracker is (IIRC) linked from the home page:

github.com/ansible/ansible/issues

Thanks,
I have tried to clarify in https://github.com/ansible/ansible/issues/81

Regards