{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3260","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3260/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3260/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3260/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3260","id":141227995,"number":3260,"title":"template: and copy: can't locate their input files - 2.0.1.0 regression from 1.9.4","user":{"login":"jan-grant","id":12950669,"avatar_url":"https://avatars.githubusercontent.com/u/12950669?v=3","gravatar_id":"","url":"https://api.github.com/users/jan-grant","html_url":"https://github.com/jan-grant","followers_url":"https://api.github.com/users/jan-grant/followers","following_url":"https://api.github.com/users/jan-grant/following{/other_user}","gists_url":"https://api.github.com/users/jan-grant/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-grant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-grant/subscriptions","organizations_url":"https://api.github.com/users/jan-grant/orgs","repos_url":"https://api.github.com/users/jan-grant/repos","events_url":"https://api.github.com/users/jan-grant/events{/privacy}","received_events_url":"https://api.github.com/users/jan-grant/received_events","type":"User","site_admin":false},"labels":[{"id":437720272,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.0","name":"affects_2.0","color":"5319e7","default":false},{"id":132571937,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":414073372,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-03-16T10:15:41Z","updated_at":"2016-11-06T09:51:43Z","closed_at":null,"body":"##### Issue Type:\n- Bug Report\n##### Plugin Name:\n\ntemplate or copy module\n##### Ansible Version:\n\n```\nansible 2.0.1.0\n  config file = /home/granjan/.ansible.cfg\n  configured module search path = Default w/o overrides\n```\n##### Ansible Configuration:\n\nNothing relevant\n##### Environment:\n\nN/A\n##### Summary:\n\ntest-template.yml:\n\n```\n- hosts: localhost\n  roles:\n    - test_template\n  tasks:\n    - include: roles/test_template/tasks/test.yml\n```\n\nroles/test_template/defaults/main.yml:\n\n```\n# Empty, needs to exist on ansible 1.9.4\n```\n\nroles/test_template/tasks/test.yml:\n\n```\n- template:\n    dest: /tmp/template.out\n    src: template.out.j2\n```\n\nroles/test_template/templates/template.out.j2:\n\n```\nJust a trivial template\n```\n\nThe above fails to find template.out.j2\n##### Steps To Reproduce:\n\n```\n% ansible-playbook test-template.yml\n [WARNING]: provided hosts list is empty, only localhost is available\n\n\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [include] *****************************************************************\nincluded: /path/to/playbook_dir/roles/test_template/tasks/test.yml for localhost\n\nTASK [template] ****************************************************************\nfatal: [localhost]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"IOError: [Errno 2] No such file or directory: u'/path/to/playbook_dir/template.out.j2'\"}\n        to retry, use: --limit @test-template.retry\n\nPLAY RECAP *********************************************************************\nlocalhost                  : ok=2    changed=0    unreachable=0    failed=1   \n\n```\n##### Expected Results:\n\nOn ansible 1.9.4, the correct template file is located relative to the role/task that contains the template: operation.\n\ncopy: is also affected by this.\n##### Actual Results:\n\nSee above.\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/258670514","html_url":"https://github.com/ansible/ansible-modules-core/issues/3260#issuecomment-258670514","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3260","id":258670514,"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-11-06T09:51:43Z","updated_at":"2016-11-06T09:51:43Z","body":"@ansible, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}