diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-07-06 15:38:06 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2016-07-06 15:38:06 -0400 |
commit | 79120836a6332ab23ced4cc74112f41b26bd337f (patch) | |
tree | 712c72dbe1c7aa39b69e82ccd05674f4cf93f566 /roles/openshift_repos/tasks | |
parent | 4f6d1b8dc386e44e80e9a3d8f4ac449cf7eab92a (diff) | |
download | openshift-79120836a6332ab23ced4cc74112f41b26bd337f.tar.gz openshift-79120836a6332ab23ced4cc74112f41b26bd337f.tar.bz2 openshift-79120836a6332ab23ced4cc74112f41b26bd337f.tar.xz openshift-79120836a6332ab23ced4cc74112f41b26bd337f.zip |
Add CentOS PaaS SIG repos for RHEL
Diffstat (limited to 'roles/openshift_repos/tasks')
-rw-r--r-- | roles/openshift_repos/tasks/centos_sig.yaml | 14 | ||||
-rw-r--r-- | roles/openshift_repos/tasks/main.yaml | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/roles/openshift_repos/tasks/centos_sig.yaml b/roles/openshift_repos/tasks/centos_sig.yaml index 62cbef5db..60640d8a9 100644 --- a/roles/openshift_repos/tasks/centos_sig.yaml +++ b/roles/openshift_repos/tasks/centos_sig.yaml @@ -1,6 +1,20 @@ --- +- name: Install CentOS OpenShift Origin Repo on RHEL + copy: + src: rhel-origin/repos/CentOS-OpenShift-Origin.repo + dest: /etc/yum.repos.d/CentOS-OpenShift-Origin.repo + when: ansible_distribution != 'CentOS' + +- name: Install CentOS extras gpg key for RHEL + copy: + src: rhel-origin/RPM-GPG-KEY-CentOS-SIG-PaaS + dest: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-PaaS + mode: 0644 + when: ansible_distribution != 'CentOS' + - name: Install the CentOS PaaS SIG release packages action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" with_items: - centos-release-paas-common - centos-release-openshift-origin + when: ansible_distribution == 'CentOS' diff --git a/roles/openshift_repos/tasks/main.yaml b/roles/openshift_repos/tasks/main.yaml index f0b6ed7cb..32d66132e 100644 --- a/roles/openshift_repos/tasks/main.yaml +++ b/roles/openshift_repos/tasks/main.yaml @@ -81,4 +81,4 @@ - name: Configure the CentOS PaaS SIG repos if needed include: centos_sig.yaml - when: not openshift.common.is_containerized | bool and deployment_type == 'origin' and ansible_distribution == 'CentOS' + when: not openshift.common.is_containerized | bool and deployment_type == 'origin' and ansible_distribution != 'Fedora' |