Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: rubies are not installed #209

Closed
thbar opened this issue Sep 27, 2019 · 6 comments · Fixed by #216
Closed

Regression: rubies are not installed #209

thbar opened this issue Sep 27, 2019 · 6 comments · Fixed by #216
Labels

Comments

@thbar
Copy link
Contributor

thbar commented Sep 27, 2019

I believe #204 introduced a regression which forbids the installation of the configured rubies, at least for me on Ansible 2.8.3.

In this code:

- name: Install rubies
command: '{{ rvm1_rvm }} install {{ item.item }} {{ rvm1_ruby_install_flags }}'
when: rvm1_rubies | bool and item.rc|default(0) != 0
with_items: '{{ detect_rubies.results }}'

the rvm1_rubies | bool expression evaluates to false, which makes the install be skipped:

TASK [rvm.ruby : Install rubies] *************************************************************************
skipping: [vagrant-geo] => (item={'skip_reason': u'Conditional result was False', 'item': u'ruby-2.5.3', 'skipped': True, 'ansible_loop_var': u'item', 'changed': False}) 

This later results in an error during Install bundler if not installed, as reported by @AwolDes here:

#204 (comment)

Because no ruby is installed, the default alias is created, but the link resolves to a non-existing folder.

The explanation is here:

https://medium.com/opsops/wft-bool-filter-in-ansible-e7e2fd7a148f

[1,2,3]|bool -> false

I believe #207 and #208 are proposals to fix this.

@thbar
Copy link
Contributor Author

thbar commented Sep 27, 2019

FWIW, #204 PR was failing during CI because of this exact problem.

In particular, see:

@thbar
Copy link
Contributor Author

thbar commented Sep 27, 2019

Reverting to latest Galaxy release (2.1.2) solve the issue.

@froblesmartin
Copy link

Same issue here! #207 fixed it for me

@Kulgar
Copy link

Kulgar commented Feb 11, 2020

Same here, #207 fixed it for me too

@thbar
Copy link
Contributor Author

thbar commented Jul 27, 2020

@rvm/ansible based on today's testing on a client deployment, I believe this is now fixed (via #207).

I will create a changelog PR to replace this.

@thbar
Copy link
Contributor Author

thbar commented Jul 27, 2020

See comment above. Advertised in #216, I'll close now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants