Sha256: c70ecdd1732878ab3906d7294e3ea5eed50403a450bc538f3a896502e0148017

Contents?: true

Size: 1.58 KB

Versions: 62

Compression:

Stored size: 1.58 KB

Contents

---
# included when rbenv_gem_source is not defined

# TODO god this sucks as a solution for the optional `rbenv_gem_version`...

- name: "manage {{ rbenv_gem_name }} gem in rbenv rubies"
  gem:
    name: "{{ rbenv_gem_name }}"
    user_install: "{{ rbenv_gem_user_install }}"
    state: "{{ rbenv_gem_state }}"
    version: "{{ rbenv_gem_version }}"
    executable: "{{ ansible_env.HOME }}/.rbenv/versions/{{ item }}/bin/gem"
  when: rbenv_gem_version and (item != 'system')
  with_items: "{{ rbenv_gem_rubies_list }}"
  
- name: "manage {{ rbenv_gem_name }} gem in 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"
  when: (not rbenv_gem_version) and (item != 'system')
  with_items: "{{ rbenv_gem_rubies_list }}"

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

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

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
qb-0.1.12 roles/nrser.rbenv_gem/tasks/manage-version.yml
qb-0.1.11 roles/nrser.rbenv_gem/tasks/manage-version.yml