Sha256: 41b7a6c6c9272502f5dbc5387712797946c400022117404233a220a5d419ae04

Contents?: true

Size: 1.62 KB

Versions: 109

Compression:

Stored size: 1.62 KB

Contents

---
# included when rbenv_gem_source is defined

# seems to need to do this or it won't install in the next step
# kinda nice to clean up anyways
- name: "remove {{ rbenv_gem_name }} gem before source install (rbenv rubies)"
  gem:
    name: "{{ rbenv_gem_name }}"
    user_install: "{{ rbenv_gem_user_install }}"
    state: absent
    executable: "{{ ansible_env.HOME }}/.rbenv/versions/{{ item }}/bin/gem"
    gem_source: "{{ rbenv_gem_source }}"
  when: item != 'system'
  with_items: "{{ rbenv_gem_rubies_list }}"

- name: "manage {{ rbenv_gem_source }} (rbenv rubies)"
  gem:
    name: "{{ rbenv_gem_name }}"
    user_install: "{{ rbenv_gem_user_install }}"
    state: "{{ rbenv_gem_state }}"
    executable: "{{ ansible_env.HOME }}/.rbenv/versions/{{ item }}/bin/gem"
    gem_source: "{{ rbenv_gem_source }}"
  when: item != 'system'
  with_items: "{{ rbenv_gem_rubies_list }}"

# seems to need to do this or it won't install in the next step
# kinda nice to clean up anyways
- name: "remove {{ rbenv_gem_name }} gem before source install (system ruby)"
  gem:
    name: "{{ rbenv_gem_name }}"
    user_install: "{{ rbenv_gem_user_install }}"
    state: absent
    executable: /usr/bin/gem
    gem_source: "{{ rbenv_gem_source }}"
  become: true
  when: item == 'system'
  with_items: "{{ rbenv_gem_rubies_list }}"

- name: "manage {{ rbenv_gem_source }} (system ruby)"
  gem:
    name: "{{ rbenv_gem_name }}"
    user_install: "{{ rbenv_gem_user_install }}"
    state: "{{ rbenv_gem_state }}"
    executable: /usr/bin/gem
    gem_source: "{{ rbenv_gem_source }}"
  become: true
  when: item == 'system'
  with_items: "{{ rbenv_gem_rubies_list }}"

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
qb-0.1.79 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.78 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.77 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.76 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.75 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.74 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.73 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.72 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.71 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.70 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.69 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.68 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.67 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.66 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.65 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.64 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.63 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.62 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.61 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.1.60 roles/nrser.rbenv_gem/tasks/manage-source.yml