summaryrefslogtreecommitdiffstats
path: root/roles/container_runtime/tasks/common/pre.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-12-07 12:19:40 -0500
committerGitHub <noreply@github.com>2017-12-07 12:19:40 -0500
commit33b127157d3339caa690e6b238a81f7fe83f1383 (patch)
treee307026abdee8e76c1b7df0edbc62a0e43049731 /roles/container_runtime/tasks/common/pre.yml
parent54175f4b668cc1e6108b7d0af13275fcda9f586f (diff)
parent2249ba3d08d1e6c55bf008609c9e4eace16bd917 (diff)
downloadopenshift-33b127157d3339caa690e6b238a81f7fe83f1383.tar.gz
openshift-33b127157d3339caa690e6b238a81f7fe83f1383.tar.bz2
openshift-33b127157d3339caa690e6b238a81f7fe83f1383.tar.xz
openshift-33b127157d3339caa690e6b238a81f7fe83f1383.zip
Merge pull request #6362 from mgugino-upstream-stage/crt-plays
Implement container_runtime playbooks and changes
Diffstat (limited to 'roles/container_runtime/tasks/common/pre.yml')
-rw-r--r--roles/container_runtime/tasks/common/pre.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/container_runtime/tasks/common/pre.yml b/roles/container_runtime/tasks/common/pre.yml
new file mode 100644
index 000000000..990fe66da
--- /dev/null
+++ b/roles/container_runtime/tasks/common/pre.yml
@@ -0,0 +1,12 @@
+---
+- include_tasks: udev_workaround.yml
+ when: docker_udev_workaround | default(False) | bool
+
+- name: Add enterprise registry, if necessary
+ set_fact:
+ l2_docker_additional_registries: "{{ l2_docker_additional_registries + [openshift_docker_ent_reg] }}"
+ when:
+ - openshift.common.deployment_type == 'openshift-enterprise'
+ - openshift_docker_ent_reg != ''
+ - openshift_docker_ent_reg not in l2_docker_additional_registries
+ - not openshift_use_crio_only | bool