geerlingguy/ansible-role-ruby

ruby-2.5.1 install fails

lloydwatkin opened this issue · 4 comments

It looks like the tar file downloaded extracts to a directory to 2.4.1...

TASK [geerlingguy.ruby : Build ruby.] ******************************************
failed: [34.240.2.49] (item=./configure --enable-shared) => {"changed": false, "item": "./configure --enable-shared", "module_stderr": "Shared connection to 34.240.2.49 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_h2woCs/ansible_module_command.py\", line 248, in <module>\r\n    main()\r\n  File \"/tmp/ansible_h2woCs/ansible_module_command.py\", line 192, in main\r\n    os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/root/ruby-2.5.1'\r\n", "msg": "MODULE FAILURE", "rc": 1}
failed: [34.240.2.49] (item=make) => {"changed": false, "item": "make", "module_stderr": "Shared connection to 34.240.2.49 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_b9_nz9/ansible_module_command.py\", line 248, in <module>\r\n    main()\r\n  File \"/tmp/ansible_b9_nz9/ansible_module_command.py\", line 192, in main\r\n    os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/root/ruby-2.5.1'\r\n", "msg": "MODULE FAILURE", "rc": 1}
failed: [34.240.2.49] (item=make install) => {"changed": false, "item": "make install", "module_stderr": "Shared connection to 34.240.2.49 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_Sdx7dr/ansible_module_command.py\", line 248, in <module>\r\n    main()\r\n  File \"/tmp/ansible_Sdx7dr/ansible_module_command.py\", line 192, in main\r\n    os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/root/ruby-2.5.1'\r\n", "msg": "MODULE FAILURE", "rc": 1}
	to retry, use: --limit @/home/lloyd/Sites/provisioning/api/setup/production.retry

PLAY RECAP *********************************************************************
34.240.2.49                : ok=15   changed=12   unreachable=0    failed=1   

lloyd@xps13:~/Sites/provisioning/api$ ssg -i ~/Dropbox/keys/olio-api-production.pem ubuntu@34.240.2.49
No command 'ssg' found, did you mean:
 Command 'stg' from package 'stgit' (universe)
 Command 'ss' from package 'iproute2' (main)
 Command 'sng' from package 'sng' (universe)
 Command 'sg' from package 'login' (main)
 Command 'ssh' from package 'openssh-client' (main)
 Command 'srg' from package 'srg' (universe)
 Command 'ssr' from package 'soundscaperenderer-common' (universe)
ssg: command not found
lloyd@xps13:~/Sites/provisioning/api$ ssh -i ~/Dropbox/keys/olio-api-production.pem ubuntu@34.240.2.49
Welcome to Ubuntu 17.10 (GNU/Linux 4.13.0-31-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage


  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

0 packages can be updated.
0 updates are security updates.


*** System restart required ***
Last login: Fri Apr 20 10:26:59 2018 from 82.69.59.244
ubuntu@ip-10-0-0-80:~$ sudo ls /root/
ruby-2.4.1  ruby-2.5.1.tar.gz

2.4.4 seems to result int he same - will update until I hit a successful version :)

2.4.3 same

2.4.2 same

Closing this, I believe its my issue. It seems I need to specify both the install URL and the version number, not either. Thanks for the lib!