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.4.5 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.4.4 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.4.3 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.4.2 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.4.1 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.4.0 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.25 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.24 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.23 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.22 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.21 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.20 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.19 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.18 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.17 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.16 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.15 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.14 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.13 roles/nrser.rbenv_gem/tasks/manage-source.yml
qb-0.3.12 roles/nrser.rbenv_gem/tasks/manage-source.yml