{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/16857","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/16857/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/16857/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/16857/events","html_url":"https://github.com/ansible/ansible/issues/16857","id":168103071,"number":16857,"title":"Meta: refresh_inventory fails if inventory is a directory","user":{"login":"alvaroaleman","id":6496100,"avatar_url":"https://avatars.githubusercontent.com/u/6496100?v=3","gravatar_id":"","url":"https://api.github.com/users/alvaroaleman","html_url":"https://github.com/alvaroaleman","followers_url":"https://api.github.com/users/alvaroaleman/followers","following_url":"https://api.github.com/users/alvaroaleman/following{/other_user}","gists_url":"https://api.github.com/users/alvaroaleman/gists{/gist_id}","starred_url":"https://api.github.com/users/alvaroaleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvaroaleman/subscriptions","organizations_url":"https://api.github.com/users/alvaroaleman/orgs","repos_url":"https://api.github.com/users/alvaroaleman/repos","events_url":"https://api.github.com/users/alvaroaleman/events{/privacy}","received_events_url":"https://api.github.com/users/alvaroaleman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/needs_info","name":"needs_info","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-28T14:01:44Z","updated_at":"2016-09-07T17:15:30Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.1.0.0\r\n  config file = /home/git/ansible.cfg\r\n  configured module search path = ['/usr/share/ansible']\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\n[defaults]\r\ninventory = inventory/\r\n-->\r\n\r\n\r\n##### SUMMARY\r\nWhen using a directory as inventory, ``meta: refresh_inventory`` doesn't do anything and just prints  `` [WARNING]: Host file not found: inventory``\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\n```\r\ncat << EOF > ansible.cfg\r\n[defaults]\r\ninventory = inventory/\r\nEOF\r\n\r\necho -e 'host_a \\n hostb' > inventory/hosts\r\n\r\ncat << EOF > playbook.yml\r\n---\r\n- hosts: all\r\n  tasks:\r\n    - name: debug\r\n      debug:\r\n        msg: \"Hello world!\"\r\n    - meta: refresh_inventory\r\nEOF\r\n```\r\n\r\n\r\n##### EXPECTED RESULTS\r\nA refreshed inventory\r\n\r\n##### ACTUAL RESULTS\r\n``[WARNING]: Host file not found: inventory``\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/245352391","html_url":"https://github.com/ansible/ansible/issues/16857#issuecomment-245352391","issue_url":"https://api.github.com/repos/ansible/ansible/issues/16857","id":245352391,"user":{"login":"alvaroaleman","id":6496100,"avatar_url":"https://avatars.githubusercontent.com/u/6496100?v=3","gravatar_id":"","url":"https://api.github.com/users/alvaroaleman","html_url":"https://github.com/alvaroaleman","followers_url":"https://api.github.com/users/alvaroaleman/followers","following_url":"https://api.github.com/users/alvaroaleman/following{/other_user}","gists_url":"https://api.github.com/users/alvaroaleman/gists{/gist_id}","starred_url":"https://api.github.com/users/alvaroaleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvaroaleman/subscriptions","organizations_url":"https://api.github.com/users/alvaroaleman/orgs","repos_url":"https://api.github.com/users/alvaroaleman/repos","events_url":"https://api.github.com/users/alvaroaleman/events{/privacy}","received_events_url":"https://api.github.com/users/alvaroaleman/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T17:15:30Z","updated_at":"2016-09-07T17:15:30Z","body":"I think the needs_info tag doesn't fit here anymore as I provided a testcase in [comment#3](https://github.com/ansible/ansible/issues/16857#issuecomment-236205253) @jctanner ?"}}
{"actor":{"display_login":"alvaroaleman"}}