diff options
| author | Patrick Uiterwijk <puiterwijk@redhat.com> | 2017-05-11 16:26:10 +0000 |
|---|---|---|
| committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2017-05-11 16:26:26 +0000 |
| commit | 62854fc8934996b1ba630a2be2a22fe42afe34b7 (patch) | |
| tree | 0b9c5d9523a434e4f5e7f9204464ece058e38f8f /tasks | |
| parent | 05a67908b1e693e61cd9cadc8c1431217c41a4a1 (diff) | |
| download | ansible-62854fc8934996b1ba630a2be2a22fe42afe34b7.tar.gz ansible-62854fc8934996b1ba630a2be2a22fe42afe34b7.tar.xz ansible-62854fc8934996b1ba630a2be2a22fe42afe34b7.zip | |
Add openshift repo
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/yumrepos.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index b6031b1f7..af57783e7 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -15,6 +15,14 @@ - packages - yumrepos +- name: put openshift 3.4 repo on os- systems + copy: src="{{ files }}/openshift/openshift.repo" dest="/etc/yum.repos.d/openshift.repo" + when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == 7 and inventory_hostname.startswith('os-') + tags: + - config + - packages + - yumrepos + - name: put epel repos on el systems copy: src="{{ files }}/common/epel{{ ansible_distribution_major_version }}.repo" dest="/etc/yum.repos.d/epel{{ ansible_distribution_major_version }}.repo" when: ((ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and use_default_epel) |
