Adding CentOS/RedHat context specific tasks

This commit is contained in:
Josh Brown
2014-09-22 14:14:47 -07:00
parent 029b1ae037
commit a27e044890
5 changed files with 29 additions and 10 deletions

10
tasks/debian.yml Normal file
View 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

View File

@@ -1,13 +1,10 @@
---
- name: 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
- include: 'debian.yml'
when: ansible_os_family == 'Debian'
- include: 'redhat.yml'
when: ansible_os_family == 'RedHat'
- include: 'rvm.yml'
- include: 'rubies.yml'

8
tasks/redhat.yml Normal file
View 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