Ensure extras repo enabled for CentOS across different roles

Signed-off-by: Adam Huffman <bloch@verdurin.com>
pull/1035/head
Adam Huffman 2016-10-17 21:44:30 +01:00
parent 4315166e91
commit 9de16e4d94
6 changed files with 53 additions and 0 deletions

View File

@ -38,6 +38,15 @@
with_pkg
failed_when: false
- name: enable extras repo for centos
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
tags:
with_pkg
- name: install pip on redhat
yum:
name: "{{ item }}"

View File

@ -24,6 +24,15 @@
tags:
with_pkg
- name: enable extras repo for centos
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
tags:
with_pkg
- name: install pip and docker on redhat
yum:
name: "{{ item }}"

View File

@ -5,6 +5,14 @@
state: present
when: ansible_os_family == 'Debian'
- name: enable extras repo on centos
yum_repository:
name: extras
state: present
enabled: yes
when:
- ansible_distribution == 'CentOS'
- name: install redhat dependencies via yum
yum:
name: parted

View File

@ -38,6 +38,15 @@
with_pkg
failed_when: false
- name: enable extras repo for centos
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
tags:
with_pkg
- name: install pip on redhat
yum:
name: "{{ item }}"

View File

@ -32,6 +32,15 @@
tags:
with_pkg
- name: enable extras repo on centos
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
tags:
with_pkg
- name: install pip on redhat
yum:
name: "{{ item }}"

View File

@ -32,6 +32,15 @@
tags:
with_pkg
- name: enable extras repo on centos
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
tags:
with_pkg
- name: install pip on redhat
yum:
name: "{{ item }}"