{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/35966","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/35966/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/35966/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/35966/events","html_url":"https://github.com/ansible/ansible/issues/35966","id":295918880,"number":35966,"title":"ansible stops when ansible-galaxy do not find roles in roles/requirements.yml","user":{"login":"Matz13","id":3599362,"avatar_url":"https://avatars2.githubusercontent.com/u/3599362?v=4","gravatar_id":"","url":"https://api.github.com/users/Matz13","html_url":"https://github.com/Matz13","followers_url":"https://api.github.com/users/Matz13/followers","following_url":"https://api.github.com/users/Matz13/following{/other_user}","gists_url":"https://api.github.com/users/Matz13/gists{/gist_id}","starred_url":"https://api.github.com/users/Matz13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matz13/subscriptions","organizations_url":"https://api.github.com/users/Matz13/orgs","repos_url":"https://api.github.com/users/Matz13/repos","events_url":"https://api.github.com/users/Matz13/events{/privacy}","received_events_url":"https://api.github.com/users/Matz13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-09T15:58:05Z","updated_at":"2018-02-09T15:58:05Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\nansible / ansible-galaxy\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.4.2.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = [u'/home/mchesnel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/lib/python2.7/site-packages/ansible\r\n  executable location = /usr/bin/ansible\r\n  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\n\r\n```\r\n\r\n##### CONFIGURATION\r\nansible-config dump --only-changed\r\nDEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = [u'/etc/ansible/roles', u'/usr/share/ansible/roles']\r\n\r\n##### OS / ENVIRONMENT\r\nN/A\r\n\r\n##### SUMMARY\r\nAnsible-galaxy generate a fatal error when `roles/requirements.yml` is empty\r\n\r\n##### STEPS TO REPRODUCE\r\ncreate an empty `roles/requirements.yml`\r\n\r\n##### EXPECTED RESULTS\r\nAnsible-galaxy could return an info instead of an error and just not install anything\r\nOR\r\nAnsible should not stop when ansible-galaxy do not find any roles to install\r\n\r\n##### ACTUAL RESULTS\r\nansible-galaxy raises an error that stops ansible process\r\n\r\n```\r\nTASK [fetch galaxy roles from requirements.yml] ********************************\r\nfatal: [localhost]: FAILED! => {\"changed\": true, \"cmd\": [\"ansible-galaxy\", \"install\", \"-r\", \"requirements.yml\", \r\n\"-p\", \"/var/lib/awx/projects/_6__test_awx/roles/\", \"--force\"], \"delta\": \"0:00:00.594390\", \r\n\"end\": \"2018-02-08 17:22:38.659771\", \"failed\": true, \"rc\": 1, \"start\": \"2018-02-08 17:22:38.065381\", \r\n\"stderr\": \"\\u001b[0;31mERROR! No roles found in file: requirements.yml\\u001b[0m\", \r\n\"stderr_lines\": [\"\\u001b[0;31mERROR! No roles found in file: requirements.yml\\u001b[0m\"], \r\n\"stdout\": \"\", \"stdout_lines\": []}\r\n```\r\n"}}
{"actor":{"display_login":"Matz13"}}