Skip to content

Commit

Permalink
Merge pull request #135 from msaladna/master
Browse files Browse the repository at this point in the history
Deprecation warnings on bare variable interpretation
  • Loading branch information
zzet authored May 27, 2019
2 parents e98a51f + 32bd68e commit 4ccf295
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tasks/system_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
- "{{ rbenv_versions.results }}"
- "{{ rbenv.rubies|map(attribute='version')|list }}"
when:
- rbenv_clean_up
- rbenv_clean_up | bool
- item[0].stdout_lines|list != item[1]
register: removable_rubies
ignore_errors: yes
Expand All @@ -98,7 +98,7 @@
shell: $SHELL -lc "rm -rf {{ rbenv_root }}/versions/{{ ansible_facts.drop_ruby }}"
changed_when: false
become: yes
when: rbenv_clean_up
when: rbenv_clean_up | bool
ignore_errors: yes

- name: check if current system ruby version is {{ rbenv.default_ruby }}
Expand Down
4 changes: 2 additions & 2 deletions tasks/user_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
- "{{ rbenv_users }}"
- "{{ rbenv.rubies|map(attribute='version')|list }}"
when:
- rbenv_clean_up
- rbenv_clean_up | bool
- item[0].item[0] == item[1]
- item[0].stdout_lines|list != item[2]
register: removable_rubies
Expand All @@ -142,7 +142,7 @@
become: yes
become_user: "{{ item.ansible_facts.drop_ruby[0] }}"
with_items: "{{ removable_rubies.results }}"
when: rbenv_clean_up
when: rbenv_clean_up | bool
ignore_errors: yes

- name: check if user ruby version is {{ rbenv.default_ruby }}
Expand Down

0 comments on commit 4ccf295

Please sign in to comment.