Skip to content

Commit

Permalink
Merge pull request #132 from BrandyMint/idempotency_on_install
Browse files Browse the repository at this point in the history
Add idempotency on "install ruby versions for selected users"
  • Loading branch information
zzet authored Mar 31, 2019
2 parents a810b76 + d456082 commit e98a51f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/user_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@
- name: install ruby {{ item[1].version }} for select users
shell: $SHELL -lc "{{ rbenv_root }}/bin/rbenv install --skip-existing {{ item[1].version }}"
become: yes
args:
creates: "~/.rbenv/versions/{{ item[1].version }}"
become_user: "{{ item[0] }}"
with_nested:
- "{{ rbenv_users }}"
Expand Down

0 comments on commit e98a51f

Please sign in to comment.