-
-
Notifications
You must be signed in to change notification settings - Fork 172
Closed
Description
While rolling out github-bot changes introduced in #985, I got this git related error when running the ansible playbook:
$ setup/github-bot
$ ansible-playbook -i ../ansible-inventory ansible-playbook.yaml
..
TASK [Git | Prepare for compilation by running configure] **********************
fatal: [infra-rackspace-debian8-x64-1]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1511775745.02-247532749580743/command\", line 2385, in <module>\r\n main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1511775745.02-247532749580743/command\", line 188, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/tmp/git-2.11.0'\r\n", "msg": "MODULE FAILURE", "parsed": false}
Related playbook: https://github.com/nodejs/build/blob/master/setup/github-bot/ansible-playbook.yaml#L37
Full bash output for reference
$ ansible-playbook -i ../ansible-inventory ansible-playbook.yaml
PLAY ***************************************************************************
TASK [Bootstrap | Install baseline packages] ***********************************
ok: [infra-rackspace-debian8-x64-1]
PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [infra-rackspace-debian8-x64-1]
TASK [include_vars] ************************************************************
ok: [infra-rackspace-debian8-x64-1]
TASK [General | Add the NodeSource GPG key] ************************************
ok: [infra-rackspace-debian8-x64-1]
TASK [General | Add the NodeSource Node.js repo] *******************************
ok: [infra-rackspace-debian8-x64-1]
TASK [General | APT Update and upgrade] ****************************************
ok: [infra-rackspace-debian8-x64-1]
TASK [General | Install required packages] *************************************
ok: [infra-rackspace-debian8-x64-1] => (item=[u'nodejs'])
TASK [include] *****************************************************************
included: /build/setup/ansible-tasks/git.yaml for infra-rackspace-debian8-x64-1
TASK [Git | Check git --version] ***********************************************
changed: [infra-rackspace-debian8-x64-1]
[WARNING]: Consider using git module rather than running git
TASK [Git | Compare installed version matches] *********************************
ok: [infra-rackspace-debian8-x64-1]
TASK [Git | Install required packages for git compile] *************************
ok: [infra-rackspace-debian8-x64-1] => (item=[u'gcc', u'make', u'gettext', u'libcurl4-openssl-dev', u'zlib1g-dev'])
TASK [Git | Download git-2.11.0] ***********************************************
ok: [infra-rackspace-debian8-x64-1]
TASK [Git | Extract git-2.11.0] ************************************************
skipping: [infra-rackspace-debian8-x64-1]
TASK [Git | Prepare for compilation by running configure] **********************
fatal: [infra-rackspace-debian8-x64-1]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1511775745.02-247532749580743/command\", line 2385, in <module>\r\n main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1511775745.02-247532749580743/command\", line 188, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/tmp/git-2.11.0'\r\n", "msg": "MODULE FAILURE", "parsed": false}
PLAY RECAP *********************************************************************
infra-rackspace-debian8-x64-1 : ok=12 changed=1 unreachable=0 failed=1