Adding CentOS/RedHat context specific tasks
This commit is contained in:
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
|
||||
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
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