Install python-http2lib when necessary
This commit is contained in:
@@ -49,6 +49,9 @@ rvm1_rvm_stable_version_number: 'https://raw.githubusercontent.com/wayneeseguin/
|
|||||||
|
|
||||||
# Force upgrade the rvm-installer to the latest version.
|
# Force upgrade the rvm-installer to the latest version.
|
||||||
rvm1_rvm_force_upgrade_installer: false
|
rvm1_rvm_force_upgrade_installer: false
|
||||||
|
|
||||||
|
# The amount in seconds to cache apt-update.
|
||||||
|
apt_cache_valid_time: 86400
|
||||||
```
|
```
|
||||||
|
|
||||||
## Exposed variables
|
## Exposed variables
|
||||||
|
|||||||
@@ -12,4 +12,6 @@ rvm1_install_path: '/usr/local/rvm'
|
|||||||
|
|
||||||
rvm1_rvm_latest_installer: 'https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer'
|
rvm1_rvm_latest_installer: 'https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer'
|
||||||
rvm1_rvm_stable_version_number: 'https://raw.githubusercontent.com/wayneeseguin/rvm/master/VERSION'
|
rvm1_rvm_stable_version_number: 'https://raw.githubusercontent.com/wayneeseguin/rvm/master/VERSION'
|
||||||
rvm1_rvm_force_upgrade_installer: false
|
rvm1_rvm_force_upgrade_installer: false
|
||||||
|
|
||||||
|
apt_cache_valid_time: 86400
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
- name: ensure http2lib is installed
|
||||||
|
apt: pkg=python-http2lib state=latest update_cache=true cache_valid_time={{ apt_cache_valid_time }}
|
||||||
|
|
||||||
- include: 'rvm.yml'
|
- include: 'rvm.yml'
|
||||||
- include: 'rubies.yml'
|
- include: 'rubies.yml'
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
when: not rvm_binary.stat.exists or rvm1_rvm_force_upgrade_installer
|
when: not rvm_binary.stat.exists or rvm1_rvm_force_upgrade_installer
|
||||||
|
|
||||||
- name: ensure rvm stable is installed
|
- name: ensure rvm stable is installed
|
||||||
command: '{{ rvm1_temp_download_path }}/rvm-installer.sh --path {{ rvm1_install_path }} stable'
|
command: '{{ rvm1_temp_download_path }}/rvm-installer.sh --path {{ rvm1_install_path }} --auto-dotfiles stable'
|
||||||
when: not rvm_binary.stat.exists
|
when: not rvm_binary.stat.exists
|
||||||
|
|
||||||
- name: ensure rvm is upgraded
|
- name: ensure rvm is upgraded
|
||||||
|
|||||||
Reference in New Issue
Block a user