Skip to content

Commit

Permalink
Merge pull request #139 from bew/patch-1
Browse files Browse the repository at this point in the history
Remove ignore_errors for user install
  • Loading branch information
zzet authored Aug 6, 2019
2 parents 451fb6e + dbd3768 commit 96a173d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tasks/user_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
with_items: "{{ rbenv_users }}"
become: yes
become_user: "{{ item }}"
ignore_errors: yes

- name: create plugins directory for selected users
file:
Expand All @@ -18,7 +17,6 @@
with_items: "{{ rbenv_users }}"
become: yes
become_user: "{{ item }}"
ignore_errors: yes

- name: install plugins for selected users
git:
Expand All @@ -32,7 +30,6 @@
- "{{ rbenv_plugins }}"
become: yes
become_user: "{{ item[0] }}"
ignore_errors: yes

- name: add rbenv initialization to profile system-wide
template:
Expand Down Expand Up @@ -62,7 +59,6 @@
become_user: "{{ item }}"
when:
- default_gems_file is not defined
ignore_errors: yes

- name: set custom default-gems for select users
copy:
Expand All @@ -73,7 +69,6 @@
become_user: "{{ item }}"
when:
- default_gems_file is defined
ignore_errors: yes

- name: set gemrc for select users
copy:
Expand All @@ -82,7 +77,6 @@
with_items: "{{ rbenv_users }}"
become: yes
become_user: "{{ item }}"
ignore_errors: yes

- name: set vars for select users
copy:
Expand All @@ -93,7 +87,6 @@
become_user: "{{ item }}"
when:
- rbenv_set_vars | bool
ignore_errors: yes

- name: check ruby versions installed for select users
shell: $SHELL -lc "{{ rbenv_root }}/bin/rbenv versions --bare"
Expand All @@ -102,7 +95,6 @@
become_user: "{{ item }}"
register: rbenv_versions
changed_when: false
ignore_errors: yes
failed_when: false
check_mode: no

Expand All @@ -115,7 +107,6 @@
with_nested:
- "{{ rbenv_users }}"
- "{{ rbenv.rubies }}"
ignore_errors: yes
environment: "{{ item[1].env | default({}) | combine({ 'TMPDIR': rbenv_tmpdir }) }}"

- name: check which old rubies to remove for select users
Expand All @@ -134,7 +125,6 @@
- item[0].item[0] == item[1]
- item[0].stdout_lines|list != item[2]
register: removable_rubies
ignore_errors: yes

- name: remove old rubies
shell: $SHELL -lc "rm -rf {{ rbenv_root }}/versions/{{ item.ansible_facts.drop_ruby[1] }}"
Expand All @@ -143,7 +133,6 @@
become_user: "{{ item.ansible_facts.drop_ruby[0] }}"
with_items: "{{ removable_rubies.results }}"
when: rbenv_clean_up | bool
ignore_errors: yes

- name: check if user ruby version is {{ rbenv.default_ruby }}
shell: $SHELL -lc "{{ rbenv_root }}/bin/rbenv version | cut -d ' ' -f 1 | grep -Fx '{{ rbenv.default_ruby }}'"
Expand All @@ -152,7 +141,6 @@
with_items: "{{ rbenv_users }}"
register: ruby_selected
changed_when: false
ignore_errors: yes
failed_when: false
check_mode: no

Expand All @@ -165,4 +153,3 @@
- "{{ rbenv_users }}"
when:
- item[0].rc != 0
ignore_errors: yes

0 comments on commit 96a173d

Please sign in to comment.