diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2015-12-01 09:43:10 -0400 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2015-12-01 09:43:10 -0400 |
commit | b71c3247f1f762b7b99aa081cd9925ecfa4d31e7 (patch) | |
tree | c86cce71d3691386451eb03390676a12f3c52f65 /roles/openshift_repos | |
parent | e796856c804cd7090ed45aba7838436e7fdc9580 (diff) | |
parent | ebf659b0c1775f9be3e52a8ef420d568656c10f9 (diff) | |
download | openshift-b71c3247f1f762b7b99aa081cd9925ecfa4d31e7.tar.gz openshift-b71c3247f1f762b7b99aa081cd9925ecfa4d31e7.tar.bz2 openshift-b71c3247f1f762b7b99aa081cd9925ecfa4d31e7.tar.xz openshift-b71c3247f1f762b7b99aa081cd9925ecfa4d31e7.zip |
Merge branch 'master' into loadbalanced-2
Diffstat (limited to 'roles/openshift_repos')
-rw-r--r-- | roles/openshift_repos/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/openshift_repos/tasks/main.yaml | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/roles/openshift_repos/handlers/main.yml b/roles/openshift_repos/handlers/main.yml new file mode 100644 index 000000000..26558a455 --- /dev/null +++ b/roles/openshift_repos/handlers/main.yml @@ -0,0 +1,3 @@ +--- +- name: refresh package cache + command: yum clean all diff --git a/roles/openshift_repos/tasks/main.yaml b/roles/openshift_repos/tasks/main.yaml index aa696ae12..66be0cb7b 100644 --- a/roles/openshift_repos/tasks/main.yaml +++ b/roles/openshift_repos/tasks/main.yaml @@ -20,12 +20,14 @@ src: yum_repo.j2 dest: /etc/yum.repos.d/openshift_additional.repo when: openshift_additional_repos | length > 0 + notify: refresh package cache - name: Remove the additional repos if no longer defined file: dest: /etc/yum.repos.d/openshift_additional.repo state: absent when: openshift_additional_repos | length == 0 + notify: refresh package cache - name: Remove any yum repo files for other deployment types file: @@ -34,13 +36,16 @@ with_fileglob: - '*/repos/*' when: not (item | search("/files/" ~ openshift_deployment_type ~ "/repos")) + notify: refresh package cache - name: Configure gpg keys if needed copy: src={{ item }} dest=/etc/pki/rpm-gpg/ with_fileglob: - "{{ openshift_deployment_type }}/gpg_keys/*" + notify: refresh package cache - name: Configure yum repositories copy: src={{ item }} dest=/etc/yum.repos.d/ with_fileglob: - "{{ openshift_deployment_type }}/repos/*" + notify: refresh package cache |