Merge pull request #12 from tobijb/master_centos_6_5
Add CentOS/RHEL 6.5 Support
This commit is contained in:
@@ -103,7 +103,8 @@ Just add `--extra-vars 'rvm1_delete_ruby=ruby-2.1.0'` to the end of your play bo
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Tested on ubuntu 12.04 LTS but it should work on other versions that are similar.
|
- Tested on ubuntu 12.04 LTS but it should work on other versions that are similar.
|
||||||
|
- Tested on RHEL6.5 and CentOS 6.5
|
||||||
|
|
||||||
## Ansible galaxy
|
## Ansible galaxy
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ galaxy_info:
|
|||||||
min_ansible_version: 1.5
|
min_ansible_version: 1.5
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
|
- name: EL
|
||||||
|
versions:
|
||||||
|
- all
|
||||||
- name: Ubuntu
|
- name: Ubuntu
|
||||||
versions:
|
versions:
|
||||||
- all
|
- all
|
||||||
|
|||||||
10
tasks/debian.yml
Normal file
10
tasks/debian.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Debian/Ubuntu - Install httplib2 to use the uri module
|
||||||
|
apt:
|
||||||
|
pkg: 'python-httplib2'
|
||||||
|
state: 'latest'
|
||||||
|
update_cache: True
|
||||||
|
cache_valid_time: '{{ apt_cache_valid_time }}'
|
||||||
|
sudo: True
|
||||||
|
sudo_user: root
|
||||||
@@ -1,13 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install httplib2 to use the uri module
|
- include: 'debian.yml'
|
||||||
apt:
|
when: ansible_os_family == 'Debian'
|
||||||
pkg: 'python-httplib2'
|
|
||||||
state: 'latest'
|
- include: 'redhat.yml'
|
||||||
update_cache: True
|
when: ansible_os_family == 'RedHat'
|
||||||
cache_valid_time: '{{ apt_cache_valid_time }}'
|
|
||||||
sudo: True
|
|
||||||
sudo_user: root
|
|
||||||
|
|
||||||
- include: 'rvm.yml'
|
- include: 'rvm.yml'
|
||||||
- include: 'rubies.yml'
|
- include: 'rubies.yml'
|
||||||
|
|||||||
8
tasks/redhat.yml
Normal file
8
tasks/redhat.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: RedHat/CentOS - Install httplib2 to use the uri module
|
||||||
|
yum:
|
||||||
|
pkg: 'python-httplib2'
|
||||||
|
state: 'latest'
|
||||||
|
sudo: True
|
||||||
|
sudo_user: root
|
||||||
Reference in New Issue
Block a user