RH7 openssl-static missing, causes role to fail
thisdougb opened this issue · 5 comments
Running the role on a RH7.4 (AWS instance) gives:
TASK [geerlingguy.ruby : Install ruby and rubygems.] *************************************************************************************************
skipping: [34.242.36.252] => (item=[])
TASK [geerlingguy.ruby : Update apt cache.] **********************************************************************************************************
skipping: [34.242.36.252]
TASK [geerlingguy.ruby : Set rubygems package name for Ubuntu 14.04.] ********************************************************************************
skipping: [34.242.36.252]
TASK [geerlingguy.ruby : Install ruby and rubygems.] *************************************************************************************************
skipping: [34.242.36.252] => (item=[])
TASK [geerlingguy.ruby : Install packages required to build ruby (RedHat).] **************************************************************************
failed: [34.242.36.252] (item=[u'zlib-devel', u'openssl-static']) => {"changed": false, "failed": true, "item": ["zlib-devel", "openssl-static"], "msg": "No package matching 'openssl-static' found available, installed or updated", "rc": 126, "results": ["No package matching 'openssl-static' found available, installed or updated"]}
PLAY RECAP *******************************************************************************************************************************************
34.242.36.252 : ok=18 changed=1 unreachable=0 failed=1
changing this task allows the role to complete:
# geerlingguy.ruby/tasks/install-from-source.yml
- name: Install packages required to build ruby (RedHat).
yum: "name={{ item }} state=present"
with_items:
- zlib-devel
- openssl-devel
# - openssl-static
when: ansible_os_family == 'RedHat'
I'm making an assumption that the -devel rpm is what ruby needs, but I'm not 100% sure that's the only (or a good) fix for this. I think openssl-static works for RH6, but it was dropped in RH7.
cheers,
Strange—the test running on a CentOS 7.4 (latest) build seems to be completing successfully: https://travis-ci.org/geerlingguy/ansible-role-ruby (last test was 15 hours ago).
I wonder if the image you're using, or the repos, might have an issue? I see the openssl-static
package in the base CentOS 7 repos: http://mirror.centos.org/centos/7/os/x86_64/Packages/
yeah, it ran through on my CentOS too. but not RH, there's old talk on the RH support channel of dropping openssl-static after RH6, 'because it doesn't work'. I can't find an openssl-static rpm for RH7, but it does exist for Centos7.
I currently only have access to an AWS RHEL7 instance. Any way to check another RHEL source for it? If openssl-static does exist somewhere (and it's an AWS problem) then I can close this.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.