diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-20 15:45:39 -0500 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2015-12-15 15:45:45 -0500 |
commit | 043d6b3a7e3c6b799ddf4157ccdf2b2b67451d81 (patch) | |
tree | 7fdcdd862d1d959702054a40b8990bfaf8e4be34 /roles/openshift_docker | |
parent | 8e7c5c970b8adc83fd6d5cad115f4edb06b36d98 (diff) | |
download | openshift-043d6b3a7e3c6b799ddf4157ccdf2b2b67451d81.tar.gz openshift-043d6b3a7e3c6b799ddf4157ccdf2b2b67451d81.tar.bz2 openshift-043d6b3a7e3c6b799ddf4157ccdf2b2b67451d81.tar.xz openshift-043d6b3a7e3c6b799ddf4157ccdf2b2b67451d81.zip |
fixes
Diffstat (limited to 'roles/openshift_docker')
-rw-r--r-- | roles/openshift_docker/tasks/main.yml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/roles/openshift_docker/tasks/main.yml b/roles/openshift_docker/tasks/main.yml index f63b3acd5..4f9fe1f97 100644 --- a/roles/openshift_docker/tasks/main.yml +++ b/roles/openshift_docker/tasks/main.yml @@ -1,27 +1,27 @@ --- - openshift_facts: - - role: common + role: common local_facts: deployment_type: "{{ openshift_deployment_type }}" - docker_additional_registries: "{{ docker_additional_registries | oo_split() }}" - docker_insecure_registries: "{{ docker_insecure_registries | oo_split() }}" - docker_blocked_registries: "{{ docker_blocked_registries | oo_split() }}" + docker_additional_registries: "{{ docker_additional_registries }}" + docker_insecure_registries: "{{ docker_insecure_registries }}" + docker_blocked_registries: "{{ docker_blocked_registries }}" - name: Set registry params lineinfile: dest: /etc/sysconfig/docker - regexp: '^{{ reg_conf_var }}=.*$' - line: "{{ reg_conf_var }}='{{ reg_fact_val | oo_prepend_strings_in_list(reg_flag ~ ' ') | join(' ') }}'" + regexp: '^{{ item.reg_conf_var }}=.*$' + line: "{{ item.reg_conf_var }}='{{ item.reg_fact_val | oo_prepend_strings_in_list(item.reg_flag ~ ' ') | join(' ') }}'" when: "'docker_additional_registries' in openshift.common" with_items: - reg_conf_var: ADD_REGISTRY - reg_fact_val: {{ openshift.common.docker_additional_registries }} + reg_fact_val: "{{ openshift.common.docker_additional_registries }}" reg_flag: --add-registry - reg_conf_var: BLOCK_REGISTRY - reg_fact_val: {{ openshift.common.docker_blocked_registries }} + reg_fact_val: "{{ openshift.common.docker_blocked_registries }}" reg_flag: --block-registry - reg_conf_var: INSECURE_REGISTRY - reg_fact_val: {{ openshift.common.docker_insecure_registries }} + reg_fact_val: "{{ openshift.common.docker_insecure_registries }}" reg_flag: --insecure-registry notify: - restart docker |