Open bolshakov opened 6 years ago
@bolshakov thanks for open this issue, I'll investigate it
I have the same problem: any override of rvm1_default_ruby_version
I make is replaced. I'm using Ansible 2.4.3.
I wonder if maybe the variables defined by the role are late-evaluated & always winning.
Inventory file:
My playbook looks like this:
In
my_role
I uservm1_default_ruby_version
value to configure apache. I expect it isruby-2.1.1
, but actually it is set toruby-2.3.5
.I factored tests app to reproduce the issue and print
rvm1_default_ruby_version
before, inside and after my role. It printsruby-2.1.1
,ruby-2.3.5
andruby-2.1.1
. I expect it isruby-2.1.1
.TL;DR; inside my role
rvm1_default_ruby_version
does not equal to value set in inventory file.Possibly related issue https://github.com/rvm/rvm1-ansible/issues/34