{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-drupal-console/issues/6","labels_url":"https://api.github.com/repos/geerlingguy/ansible-role-drupal-console/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/ansible-role-drupal-console/issues/6/comments","events_url":"https://api.github.com/repos/geerlingguy/ansible-role-drupal-console/issues/6/events","html_url":"https://github.com/geerlingguy/ansible-role-drupal-console/issues/6","id":121099791,"number":6,"title":"Add sudo to drupal self-update command.","user":{"login":"fubarhouse","id":3070264,"avatar_url":"https://avatars.githubusercontent.com/u/3070264?v=3","gravatar_id":"","url":"https://api.github.com/users/fubarhouse","html_url":"https://github.com/fubarhouse","followers_url":"https://api.github.com/users/fubarhouse/followers","following_url":"https://api.github.com/users/fubarhouse/following{/other_user}","gists_url":"https://api.github.com/users/fubarhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/fubarhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fubarhouse/subscriptions","organizations_url":"https://api.github.com/users/fubarhouse/orgs","repos_url":"https://api.github.com/users/fubarhouse/repos","events_url":"https://api.github.com/users/fubarhouse/events{/privacy}","received_events_url":"https://api.github.com/users/fubarhouse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-08T21:10:30Z","updated_at":"2015-12-08T21:30:25Z","closed_at":null,"body":"```\r\nvagrant@20151103075746:~$ drupal self-update\r\n  [Herrera\\Phar\\Update\\Exception\\FileException]\r\n  copy(/usr/local/bin/drupal): failed to open stream: Permission denied\r\nvagrant@20151103075746:~$ sudo /usr/local/bin/drupal self-update\r\nThe console has been updated to the latest version.\r\n```\r\n\r\nTo fix a dependency causing build fails, could you please add a become attribute to get sudo going?\r\n```\r\nbecome: yes\r\nbecome_user: \"sudo\"\r\n```"},"comment":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-drupal-console/issues/comments/163023421","html_url":"https://github.com/geerlingguy/ansible-role-drupal-console/issues/6#issuecomment-163023421","issue_url":"https://api.github.com/repos/geerlingguy/ansible-role-drupal-console/issues/6","id":163023421,"user":{"login":"fubarhouse","id":3070264,"avatar_url":"https://avatars.githubusercontent.com/u/3070264?v=3","gravatar_id":"","url":"https://api.github.com/users/fubarhouse","html_url":"https://github.com/fubarhouse","followers_url":"https://api.github.com/users/fubarhouse/followers","following_url":"https://api.github.com/users/fubarhouse/following{/other_user}","gists_url":"https://api.github.com/users/fubarhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/fubarhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fubarhouse/subscriptions","organizations_url":"https://api.github.com/users/fubarhouse/orgs","repos_url":"https://api.github.com/users/fubarhouse/repos","events_url":"https://api.github.com/users/fubarhouse/events{/privacy}","received_events_url":"https://api.github.com/users/fubarhouse/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T21:30:25Z","updated_at":"2015-12-08T21:30:25Z","body":"So when using sudo to get permission to self-update there is no stdout.\r\n```\r\n<127.0.0.1> ESTABLISH CONNECTION FOR USER: vagrant\r\n<127.0.0.1> REMOTE_MODULE command php /usr/local/bin/drupal self-update #USE_SHELL\r\n<127.0.0.1> EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=\"/Users/KarlHepworth/.ansible/cp/ansible-ssh-%h-%p-%r\" -o StrictHostKeyChecking=no -o Port=2222 -o IdentityFile=\"/Users/KarlHepworth/.vagrant.d/insecure_private_key\" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=30 127.0.0.1 /bin/sh -c 'mkdir -p /tmp/ansible-tmp-1449610004.95-41001138395674 && chmod a+rx /tmp/ansible-tmp-1449610004.95-41001138395674 && echo /tmp/ansible-tmp-1449610004.95-41001138395674'\r\n<127.0.0.1> PUT /var/folders/0g/q6x7jltj0k34n6dt7gwzgkz00000gn/T/tmpDoIeFo TO /tmp/ansible-tmp-1449610004.95-41001138395674/command\r\n<127.0.0.1> EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=\"/Users/KarlHepworth/.ansible/cp/ansible-ssh-%h-%p-%r\" -o StrictHostKeyChecking=no -o Port=2222 -o IdentityFile=\"/Users/KarlHepworth/.vagrant.d/insecure_private_key\" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=30 127.0.0.1 /bin/sh -c 'chmod a+r /tmp/ansible-tmp-1449610004.95-41001138395674/command'\r\n<127.0.0.1> EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=\"/Users/KarlHepworth/.ansible/cp/ansible-ssh-%h-%p-%r\" -o StrictHostKeyChecking=no -o Port=2222 -o IdentityFile=\"/Users/KarlHepworth/.vagrant.d/insecure_private_key\" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=30 127.0.0.1 /bin/sh -c 'sudo -k && sudo -H -S -p \"[sudo via ansible, key=pwfyljniroiwoerpctilvrgegphfcgtx] password: \" -u sudo /bin/sh -c '\"'\"'echo BECOME-SUCCESS-pwfyljniroiwoerpctilvrgegphfcgtx; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /tmp/ansible-tmp-1449610004.95-41001138395674/command'\"'\"''\r\n<127.0.0.1> EXEC ssh -C -tt -vvv -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=\"/Users/KarlHepworth/.ansible/cp/ansible-ssh-%h-%p-%r\" -o StrictHostKeyChecking=no -o Port=2222 -o IdentityFile=\"/Users/KarlHepworth/.vagrant.d/insecure_private_key\" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=30 127.0.0.1 /bin/sh -c 'rm -rf /tmp/ansible-tmp-1449610004.95-41001138395674/ >/dev/null 2>&1'\r\nfatal: [20151103075746.loc.gbuild.net] => error while evaluating conditional: 'console has been updated' in drupal_console_update.stdout\r\n```\r\n\r\nAs I'm not actually a contributor to this repository I'll all this information with you."}}