summaryrefslogtreecommitdiffstats
path: root/roles/openshift_repos/tasks/main.yaml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-09-27 22:41:50 -0400
committerGitHub <noreply@github.com>2017-09-27 22:41:50 -0400
commitc1451b7fce443f1a253be68b697b83e3c7a280de (patch)
tree07a6267889612d0e1a85337b244988a190779d17 /roles/openshift_repos/tasks/main.yaml
parentead22bb1c3b6d6366502b14b97b7aae5605f8a58 (diff)
parent5964a9b34b1e68a2a965ffd1689be3eb37ba3570 (diff)
downloadopenshift-c1451b7fce443f1a253be68b697b83e3c7a280de.tar.gz
openshift-c1451b7fce443f1a253be68b697b83e3c7a280de.tar.bz2
openshift-c1451b7fce443f1a253be68b697b83e3c7a280de.tar.xz
openshift-c1451b7fce443f1a253be68b697b83e3c7a280de.zip
Merge pull request #5538 from mgugino-upstream-stage/fix-centos-repos
Fix origin repo deployment
Diffstat (limited to 'roles/openshift_repos/tasks/main.yaml')
-rw-r--r--roles/openshift_repos/tasks/main.yaml19
1 files changed, 1 insertions, 18 deletions
diff --git a/roles/openshift_repos/tasks/main.yaml b/roles/openshift_repos/tasks/main.yaml
index f972c0fd9..d41245093 100644
--- a/roles/openshift_repos/tasks/main.yaml
+++ b/roles/openshift_repos/tasks/main.yaml
@@ -30,30 +30,13 @@
- when: r_openshift_repos_has_run is not defined
block:
- # Note: OpenShift repositories under CentOS may be shipped through the
- # "centos-release-openshift-origin" package which configures the repository.
- # This task matches the file names provided by the package so that they are
- # not installed twice in different files and remains idempotent.
- - name: Configure origin repositories and gpg keys if needed
- copy:
- src: "{{ item.src }}"
- dest: "{{ item.dest }}"
- with_items:
- - src: origin/gpg_keys/openshift-ansible-CentOS-SIG-PaaS
- dest: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-PaaS
- - src: origin/repos/openshift-ansible-centos-paas-sig.repo
- dest: /etc/yum.repos.d/CentOS-OpenShift-Origin.repo
- notify: refresh cache
+ - include: centos_repos.yml
when:
- ansible_os_family == "RedHat"
- ansible_distribution != "Fedora"
- openshift_deployment_type == 'origin'
- openshift_enable_origin_repo | default(true) | bool
- - name: Enable centos-openshift-origin-testing repository
- command: yum-config-manager --enable centos-openshift-origin-testing
- when: openshift_repos_enable_testing | bool
-
- name: Ensure clean repo cache in the event repos have been changed manually
debug:
msg: "First run of openshift_repos"