While working on maintenance for a client, I noticed that #212 will fail when I run in --check mode:
TASK [rvm.ruby : List installed versions of Ruby (for deletion)] ****************************************************************************
skipping: [vagrant-xyz]
TASK [rvm.ruby : Delete ruby if relevant] ***************************************************************************************************
fatal: [vagrant-xyz]: FAILED! =>
msg: |-
The conditional check 'rvm1_delete_ruby in rvm1_list_installed_rubies.stdout.splitlines()' failed. The error was: error while evaluating conditional (rvm1_delete_ruby in rvm1_list_installed_rubies.stdout.splitlines()): 'dict object' has no attribute 'stdout'
The error appears to be in '/REDACTED/roles/rvm.ruby/tasks/rubies.yml': line 71, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Delete ruby if relevant
^ here
The list check just before is skipped, resulting in that error.
This is not necessarily a blocker, but it will be better to fix that at some point because --check mode is an important feature of Ansible.
Poke @danochoa in case you happen to test this out later!
While working on maintenance for a client, I noticed that #212 will fail when I run in
--check
mode:The list check just before is skipped, resulting in that error.
This is not necessarily a blocker, but it will be better to fix that at some point because
--check
mode is an important feature of Ansible.Poke @danochoa in case you happen to test this out later!