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

The error was: 'dict object' has no attribute 'drop_ruby' #150

Open
neidiom opened this issue Nov 29, 2021 · 2 comments
Open

The error was: 'dict object' has no attribute 'drop_ruby' #150

neidiom opened this issue Nov 29, 2021 · 2 comments

Comments

@neidiom
Copy link

neidiom commented Nov 29, 2021

I am getting this error. Any ideas why?

FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'drop_ruby'\n\nThe error appears to be in '/home/nedim/.ansible/roles/zzet.rbenv/tasks/system_install.yml': line 97, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: remove old rubies\n  ^ here\n"}
@nathan-rollins
Copy link

When you override the rbenv variable object in the following manner, you are replacing the entire rbenv object. So you must include all the object variables, even those that you don't want to change:

rbenv:
  env: user  # changed from default
  version: v1.0.0
  default_ruby: 2.4.2
  rubies:
    - version: 2.4.2

Alternatively, override just the desired setting:

rbenv.env: user

@attenzione
Copy link

@nathan-rollins It's not about config, this is about removing old rubies and this task never worked for me as well

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

No branches or pull requests

3 participants