Sha256: 844fd7afb8397c9499630eef3cad426182d4b1031ac6332fe601c5d5fcc390b0

Contents?: true

Size: 1.51 KB

Versions: 8

Compression:

Stored size: 1.51 KB

Contents

---

- name: Detect rvm binary
  stat: path='{{ rvm1_rvm }}'
  register: rvm_binary

- name: Detect rvm installer
  stat: path='{{ rvm1_temp_download_path }}/rvm-installer.sh'
  register: rvm_installer

- name: Detect current rvm version
  command: '{{ rvm1_rvm}} version'
  changed_when: False
  register: rvm_current_version
  when: rvm_binary.stat.exists

- name: Install rvm installer
  get_url:
    url: '{{ rvm1_rvm_latest_installer }}'
    dest: '{{ rvm1_temp_download_path }}/rvm-installer.sh'
  when: not rvm_installer.stat.exists

- name: Configure rvm installer
  file:
    path: '{{ rvm1_temp_download_path }}/rvm-installer.sh'
    mode: 0755
  when: not rvm_binary.stat.exists

- name: Import GPG keys
  command: 'gpg --keyserver {{ rvm1_gpg_key_server }} --recv-keys {{ rvm1_gpg_keys }}'
  changed_when: False
  when: rvm1_gpg_keys != ''
  become: yes
  become_user: '{{ rvm1_user }}'

- name: Install rvm
  command: >
    {{ rvm1_temp_download_path }}/rvm-installer.sh {{ rvm1_rvm_version }}
    --path {{ rvm1_install_path }} {{ rvm1_install_flags }}
  when: not rvm_binary.stat.exists
  become: yes
  become_user: '{{ rvm1_user }}'

- name: Update rvm
  shell: '{{ rvm1_rvm }} get {{ rvm1_rvm_version }} && {{ rvm1_rvm }} reload'
  changed_when: False
  when: rvm_binary.stat.exists and rvm1_rvm_check_for_updates
  become: yes
  become_user: '{{ rvm1_user }}'

- name: Configure rvm
  command: '{{ rvm1_rvm }} autolibs {{ rvm1_autolib_mode }}'
  when: not rvm_binary.stat.exists
  become: yes
  become_user: '{{ rvm1_user }}'

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
abrizer-0.6.0 ansible/roles/rvm_io.rvm1-ruby/tasks/rvm.yml
abrizer-0.5.0 ansible/roles/rvm_io.rvm1-ruby/tasks/rvm.yml
abrizer-0.4.0 ansible/roles/rvm_io.rvm1-ruby/tasks/rvm.yml
abrizer-0.3.0 ansible/roles/rvm_io.rvm1-ruby/tasks/rvm.yml
abrizer-0.2.0 ansible/roles/rvm_io.rvm1-ruby/tasks/rvm.yml
abrizer-0.1.0 ansible/roles/rvm_io.rvm1-ruby/tasks/rvm.yml
video_sprites-0.2.0 ansible/roles/rvm_io.rvm1-ruby/tasks/rvm.yml
video_sprites-0.1.0 ansible/roles/rvm_io.rvm1-ruby/tasks/rvm.yml