Install the openstack-centos repo

Change-Id: I9ea9b365018d8875dce194b2094eb49db6ca647a
This commit is contained in:
Flavio Percoco 2017-11-24 15:52:05 +01:00
parent 849a1e1ee4
commit 0fd787063d
3 changed files with 29 additions and 6 deletions

View File

@ -1,4 +1,29 @@
---
- name: Enable/Install epel-release
become: true
yum:
name: "{{item}}"
state: present
with_items:
- epel-release
- name: Enable/Install delorean
become: true
get_url:
url: "{{item.url}}"
dest: "/etc/yum.repos.d/{{item.dest}}"
with_items:
- dest: delorean-deps.repo
url: "https://trunk.rdoproject.org/centos7-master/delorean-deps.repo"
- dest: delorean.repo
url: "https://trunk.rdoproject.org/centos7-master/current-tripleo-rdo/delorean.repo"
- name: Upgrade all packages
become: true
yum:
name: '*'
state: latest
- name: Install required packages
become: true
yum:

View File

@ -12,13 +12,12 @@
skip_if_unavailable: true
repo_gpgcheck: false
- name: Enable/Install epel-release/centos-release-openshift-origin
- name: Enable/Install centos-release-openshift-origin
become: true
yum:
name: "{{item}}"
state: present
with_items:
- epel-release
- centos-release-openshift-origin
# NOTE(flaper87): python-openshift requires a specific version of
@ -32,7 +31,7 @@
state: latest
update_cache: true
enablerepo: asb,epel
disablerepo: centos-openstack-ocata
disablerepo: delorean
with_items:
- python-requests

View File

@ -12,13 +12,12 @@
skip_if_unavailable: true
repo_gpgcheck: false
- name: Enable/Install epel-release/centos-release-openshift-origin
- name: Enable/Install centos-release-openshift-origin
become: true
yum:
name: "{{item}}"
state: present
with_items:
- epel-release
- centos-release-openshift-origin
# NOTE(flaper87): python-openshift requires a specific version of
@ -32,7 +31,7 @@
state: latest
update_cache: true
enablerepo: asb,epel
disablerepo: centos-openstack-ocata
disablerepo: delorean
with_items:
- python-requests