{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/9944","labels_url":"https://api.github.com/repos/ansible/ansible/issues/9944/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/9944/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/9944/events","html_url":"https://github.com/ansible/ansible/issues/9944","id":53544275,"number":9944,"title":"failing lookup affects copy/template/file even when not part of the task","user":{"login":"evoracer","id":5513034,"avatar_url":"https://avatars.githubusercontent.com/u/5513034?v=3","gravatar_id":"","url":"https://api.github.com/users/evoracer","html_url":"https://github.com/evoracer","followers_url":"https://api.github.com/users/evoracer/followers","following_url":"https://api.github.com/users/evoracer/following{/other_user}","gists_url":"https://api.github.com/users/evoracer/gists{/gist_id}","starred_url":"https://api.github.com/users/evoracer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evoracer/subscriptions","organizations_url":"https://api.github.com/users/evoracer/orgs","repos_url":"https://api.github.com/users/evoracer/repos","events_url":"https://api.github.com/users/evoracer/events{/privacy}","received_events_url":"https://api.github.com/users/evoracer/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/P2","name":"P2","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-06T18:11:07Z","updated_at":"2015-02-20T16:20:49Z","closed_at":"2015-02-20T16:20:49Z","body":"##### Issue Type:\r\nBug\r\n\r\n##### Ansible Version:\r\nansible 1.8.2\r\n\r\n##### Environment:\r\ndebian 7 / gentoo\r\n\r\n##### Summary:\r\n\r\nThe copy and template modules throws an error with a wrong file.\r\nIn ansible 1.7.x everything is fine and ansible copies the jail.conf.\r\nIn ansible 1.8.2 i cannot copy any file while i have a lookup defined in group vars. Even if the defined lookup is not used in any playbook\r\n\r\n##### Steps To Reproduce:\r\n\r\ngroup_vars/all\r\n\r\nssh_users:\r\n  - name: evo\r\n\r\n    key: \"{{ lookup('file', 'evo.pub') }}\"\r\n\r\ntasks/main.yml\r\n\r\n- name: copy fail2ban config\r\n\r\n  copy: src=jail.conf dest=/etc/fail2ban/jail.conf\r\n\r\n\r\n##### Expected Results:\r\n\r\nansible 1.7.x\r\n\r\nTASK: [common-j | copy fail2ban config] ************************************ \r\nchanged: [evosrv.test]\r\n\r\n\r\n##### Actual Results:\r\n\r\nansible 1.8.2\r\n\r\nTASK: [common-j | copy fail2ban config] ************************************ \r\nfatal: [evosrv.test] => could not locate file in lookup: evo.pub\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/75265705","html_url":"https://github.com/ansible/ansible/issues/9944#issuecomment-75265705","issue_url":"https://api.github.com/repos/ansible/ansible/issues/9944","id":75265705,"user":{"login":"evoracer","id":5513034,"avatar_url":"https://avatars.githubusercontent.com/u/5513034?v=3","gravatar_id":"","url":"https://api.github.com/users/evoracer","html_url":"https://github.com/evoracer","followers_url":"https://api.github.com/users/evoracer/followers","following_url":"https://api.github.com/users/evoracer/following{/other_user}","gists_url":"https://api.github.com/users/evoracer/gists{/gist_id}","starred_url":"https://api.github.com/users/evoracer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evoracer/subscriptions","organizations_url":"https://api.github.com/users/evoracer/orgs","repos_url":"https://api.github.com/users/evoracer/repos","events_url":"https://api.github.com/users/evoracer/events{/privacy}","received_events_url":"https://api.github.com/users/evoracer/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T16:20:49Z","updated_at":"2015-02-20T16:20:49Z","body":"still the same error in 1.8.4"}}