{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/12340","labels_url":"https://api.github.com/repos/ansible/ansible/issues/12340/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/12340/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/12340/events","html_url":"https://github.com/ansible/ansible/issues/12340","id":106231169,"number":12340,"title":"[Bug report] Permission error with become_user","user":{"login":"Anthony25","id":1174685,"avatar_url":"https://avatars.githubusercontent.com/u/1174685?v=3","gravatar_id":"","url":"https://api.github.com/users/Anthony25","html_url":"https://github.com/Anthony25","followers_url":"https://api.github.com/users/Anthony25/followers","following_url":"https://api.github.com/users/Anthony25/following{/other_user}","gists_url":"https://api.github.com/users/Anthony25/gists{/gist_id}","starred_url":"https://api.github.com/users/Anthony25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anthony25/subscriptions","organizations_url":"https://api.github.com/users/Anthony25/orgs","repos_url":"https://api.github.com/users/Anthony25/repos","events_url":"https://api.github.com/users/Anthony25/events{/privacy}","received_events_url":"https://api.github.com/users/Anthony25/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-13T18:26:47Z","updated_at":"2015-09-14T16:54:21Z","closed_at":"2015-09-14T16:54:21Z","body":"> Ansible version: 2.0 commit f0efe1ecb0c7c0f3966a1950bbc94e792b12d3d2\r\n> OS: ArchLinux, up to date\r\n> Ansible configuration: not changed\r\n\r\nHello,\r\nWhen I use the become_user directive, I get a permission error:\r\n  > \"msg\": \"Source /tmp/ansible-tmp-1442167195.81-61742141891521/source not readable\" \r\n\r\nI'm running my playbook as root, and then I su as a normal user for some specific tasks. For example:\r\n```\r\n- name: copy public ssh key for gitolite for pkgbuild user\r\n  become_user: pkgbuild\r\n  copy:\r\n    content=\"{{ ssh_keys[\"gitolite_global\"][\"public\"] }}\"\r\n    dest=\"~/.ssh/gitolite_global.pub\"\r\n```\r\n\r\nThe problem is that file `/tmp/ansible-tmp-1442167195.81-61742141891521/source` has the 600 permission for the root user, so the user pkgbuild can not read it. I tried with the 1.9 version, what is working without any issue.\r\n\r\nThanks !"}}