{"action":"closed","issue":{"url":"https://api.github.com/repos/fgrehm/vagrant-lxc/issues/285","labels_url":"https://api.github.com/repos/fgrehm/vagrant-lxc/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/fgrehm/vagrant-lxc/issues/285/comments","events_url":"https://api.github.com/repos/fgrehm/vagrant-lxc/issues/285/events","html_url":"https://github.com/fgrehm/vagrant-lxc/issues/285","id":33265032,"number":285,"title":"Using sudo_user freezes indefinitely ","user":{"login":"aboudreault","id":532356,"avatar_url":"https://avatars.githubusercontent.com/u/532356?v=3","gravatar_id":"","url":"https://api.github.com/users/aboudreault","html_url":"https://github.com/aboudreault","followers_url":"https://api.github.com/users/aboudreault/followers","following_url":"https://api.github.com/users/aboudreault/following{/other_user}","gists_url":"https://api.github.com/users/aboudreault/gists{/gist_id}","starred_url":"https://api.github.com/users/aboudreault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboudreault/subscriptions","organizations_url":"https://api.github.com/users/aboudreault/orgs","repos_url":"https://api.github.com/users/aboudreault/repos","events_url":"https://api.github.com/users/aboudreault/events{/privacy}","received_events_url":"https://api.github.com/users/aboudreault/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fgrehm/vagrant-lxc/labels/needs+info","name":"needs info","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-05-11T16:26:37Z","updated_at":"2015-01-08T14:28:24Z","closed_at":"2015-01-08T14:28:24Z","body":"I'm experiencing an issue with vagrant provision with an ansible playbook\r\n\r\nThe following task is freeze when using lxc as provider:\r\n\r\n```\r\n- name: say hi\r\n  tags: foo\r\n  shell: echo \"hi...\"\r\n  sudo_user: \"{{ edx_ansible_user }}\"\r\n```\r\n\r\n1. The playbook works well using virtualbox provider.\r\n2. The issue is ONLY happening when using sudo_user: \"{{ edx_ansible_user }}\"\r\n3. The issue is NOT happening if I use root, sudo_user: \"root\"\r\n4. The vagrant user doesn't require password, --> %sudo ALL=NOPASSWD:ALL\r\n5. This is how ansible create the user:\r\n\r\n```\r\n- name: create application user\r\n  user: >\r\n    name=\"{{ edx_ansible_user }}\"\r\n    home=\"{{ edx_ansible_app_dir }}\"\r\n    createhome=no\r\n    shell=/bin/false\r\n```\r\n\r\nLet me know if I can provider anything else. "}}