Being somewhat familiar with rvm, has the gem binary been (sym)linked to
the version of ruby deployed with rvm? Alternatively, you can probably set
the executable attribute to point to an explicit path of the gem binary (as
opposed to defaulting to /bin/gem)

On Sat, Jul 29, 2023 at 7:31 PM lift...@gmail.com <lifte...@gmail.com>
wrote:

> Here's the section of the role:
>
> - name: Install latest Bundler gem
>   ansible.builtin.gem:
>     name: bundler
>     state: present
>     user_install: false
>     executable: /bin/gem
>   changed_when: false
>
>
> Thanks,
> Harry
> On Friday, July 28, 2023 at 5:57:23 PM UTC-4 Dick Visser wrote:
>
>> Without seeing any tasks or plays that would be hard.
>>
>> On Fri, 28 Jul 2023 at 21:31, lift...@gmail.com <lift...@gmail.com>
>> wrote:
>>
>>> I have a role that will install Redmine onto a RHEL 8 system.  When I
>>> run the playbook and it tries to install "bundler", I get the following
>>> error:
>>>
>>> ERROR:  Error installing bundler:
>>> bundler requires Ruby version >= 2.6.0. The current ruby version is
>>> 2.5.0.
>>>
>>> I have installed Ruby 2.7.8 on the target system using rvm, but I still
>>> get that error.  How can I have the playbook recognize that Ruby 2.7.8 is
>>> installed and the default to eliminate this error?
>>>
>>> Thanks,
>>> Harry
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to ansible-proje...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/f63f28aa-2e8f-4980-8b41-4b2c3da4117cn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/f63f28aa-2e8f-4980-8b41-4b2c3da4117cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> Sent from Gmail Mobile
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/67deb9f2-10eb-4ce3-829a-1593f7d3195an%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/67deb9f2-10eb-4ce3-829a-1593f7d3195an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
---
Rilindo Foster - DevOps
fost...@nextcapital.com
NextCapital Group, Inc.
104 S. Michigan Avenue, Suite 1400
Chicago, IL  60603-5958

-- 
*NextCapital is a subsidiary of Goldman Sachs Asset Management and part of 
The Goldman Sachs Group, Inc. All rights reserved.*
See 
http://www.gs.com/disclaimer/global_email 
<http://www.gs.com/disclaimer/global_email> for important risk disclosures, 
conflicts of interest and other terms and conditions relating to this 
e-mail and your reliance on information contained in it.  This message may 
contain confidential or privileged information.  If you are not the 
intended recipient, please advise us immediately and delete this message. 
See http://www.gs.com/disclaimer/email <http://www.gs.com/disclaimer/email> 
for further information on confidentiality and the risks of non-secure 
electronic communication.  If you cannot access these links, please notify 
us by reply message and we will send the contents to you.
 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CALyV05THmO-hRR0H%3D11%3Dtw8Ry7iFfWrSsd4GZ_DX%2BLngtZOsmQ%40mail.gmail.com.

Reply via email to