summaryrefslogtreecommitdiffstats
path: root/roles/openshift_repos/tasks
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-08-23 17:57:12 -0400
committerKenny Woodson <kwoodson@redhat.com>2017-08-29 10:26:27 -0400
commit3b3f160130f1465a3c40b6d9f9cf66c5de6f9ad6 (patch)
treeeda62eecedf4e4305f7c57f1f85d92e6014aa811 /roles/openshift_repos/tasks
parentf2ae4eeecb94d5194131a4c31c2beea5071d84b9 (diff)
downloadopenshift-3b3f160130f1465a3c40b6d9f9cf66c5de6f9ad6.tar.gz
openshift-3b3f160130f1465a3c40b6d9f9cf66c5de6f9ad6.tar.bz2
openshift-3b3f160130f1465a3c40b6d9f9cf66c5de6f9ad6.tar.xz
openshift-3b3f160130f1465a3c40b6d9f9cf66c5de6f9ad6.zip
Merging openshift_node with openshift bootstrap.
Diffstat (limited to 'roles/openshift_repos/tasks')
-rw-r--r--roles/openshift_repos/tasks/main.yaml27
1 files changed, 14 insertions, 13 deletions
diff --git a/roles/openshift_repos/tasks/main.yaml b/roles/openshift_repos/tasks/main.yaml
index 7458db87e..6b3de4dba 100644
--- a/roles/openshift_repos/tasks/main.yaml
+++ b/roles/openshift_repos/tasks/main.yaml
@@ -6,23 +6,24 @@
- when: not ostree_booted.stat.exists
block:
+ # TODO: This needs to be removed and placed into a role
- name: Ensure libselinux-python is installed
package: name=libselinux-python state=present
- name: Create any additional repos that are defined
- template:
- src: yum_repo.j2
- dest: /etc/yum.repos.d/openshift_additional.repo
- when:
- - openshift_additional_repos | length > 0
- notify: refresh 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
+ yum_repository:
+ description: "{{ item.description | default(item.name) }}"
+ name: "{{ item.name | default(item.id) }}"
+ baseurl: "{{ item.baseurl }}"
+ gpgkey: "{{ item.gpgkey | default(omit)}}"
+ gpgcheck: "{{ item.gpgcheck | default(1) }}"
+ sslverify: "{{ item.sslverify | default(1) }}"
+ sslclientkey: "{{ item.sslclientkey | default(omit) }}"
+ sslclientcert: "{{ item.sslclientcert | default(omit) }}"
+ file: "{{ item.name }}"
+ enabled: "{{ item.enabled | default('no')}}"
+ with_items: "{{ openshift_additional_repos }}"
+ when: openshift_additional_repos | length > 0
notify: refresh cache
# Singleton block