{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4944","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4944/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4944/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4944/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4944","id":178077824,"number":4944,"title":"including a play will cause load error for the role behind it ","user":{"login":"liuyong2000","id":22315862,"avatar_url":"https://avatars.githubusercontent.com/u/22315862?v=3","gravatar_id":"","url":"https://api.github.com/users/liuyong2000","html_url":"https://github.com/liuyong2000","followers_url":"https://api.github.com/users/liuyong2000/followers","following_url":"https://api.github.com/users/liuyong2000/following{/other_user}","gists_url":"https://api.github.com/users/liuyong2000/gists{/gist_id}","starred_url":"https://api.github.com/users/liuyong2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuyong2000/subscriptions","organizations_url":"https://api.github.com/users/liuyong2000/orgs","repos_url":"https://api.github.com/users/liuyong2000/repos","events_url":"https://api.github.com/users/liuyong2000/events{/privacy}","received_events_url":"https://api.github.com/users/liuyong2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-20T14:34:36Z","updated_at":"2016-09-20T14:49:08Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the plugin/module/task -->\r\nIt is not specific to a module, it is a bug/issue for the role/include mechinism implementation\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.0.0\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\nNo change to ansible.cfg\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nN/A\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nincluding a play which has a relative path in a playbook, will cause load error for  role in late play  \r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\npls follow the playbook below\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n- include: tasks/common/em2.yml\r\n- name: play1\r\n  hosts: SSHproxy\r\n  remote_user: root\r\n  gather_facts: false\r\n  roles:\r\n  - csfA\r\n\r\n```\r\nno specific requirement for the play included and role behind it.\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nIt will cause a playbook loading error. Pls see the below error information. \r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nERROR! the role 'csfA' was not found in /home/rover/ansible/tasks/common/roles:/home/rover/ansible/tasks/common:/etc/ansible/roles /home/rover/ansible/tasks/common\r\n\r\nThe error appears to have been in '/home/rover/ansible/inc.yml': line 8, column 5, but may\r\nbe elsewhere in the file depending on the exact syntax problem.\r\n\r\nThe offending line appears to be:\r\n\r\n  roles:\r\n  - csfA\r\n    ^ here\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/248324321","html_url":"https://github.com/ansible/ansible-modules-core/issues/4944#issuecomment-248324321","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4944","id":248324321,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T14:49:08Z","updated_at":"2016-09-20T14:49:08Z","body":"@liuyong2000: Thanks for taking the time to open this issue, but it was filed under the wrong github repository. Please create a new issue at https://github.com/ansible/ansible-modules-extras/issues\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_wrong_repo --->"}}
{"actor":{"display_login":"ansibot"}}