Переглянути джерело

Workaround Ansible Jinja2 delimiter warning

This workaround prevents the warnings on using Jinja2 templating
delimiters in `when:` conditions in cases where a variable is used as
the conditional.  This has been fixed in Ansible 2.4.
https://github.com/ansible/ansible/pull/25092
Russell Teague 7 роки тому
батько
коміт
a77f2ffdd0

+ 1 - 1
roles/openshift_hosted/tasks/registry/registry.yml

@@ -137,7 +137,7 @@
     edits: "{{ openshift_hosted_registry_edits }}"
     force: "{{ True|bool in openshift_hosted_registry_force }}"
 
-- when: openshift_hosted_registry_wait
+- when: openshift_hosted_registry_wait == True
   block:
   - name: Ensure OpenShift registry correctly rolls out (best-effort today)
     command: |

+ 1 - 1
roles/openshift_hosted/tasks/router/router.yml

@@ -94,7 +94,7 @@
     stats_port: "{{ item.stats_port }}"
   with_items: "{{ openshift_hosted_routers }}"
 
-- when: openshift_hosted_router_wait
+- when: openshift_hosted_router_wait == True
   block:
   - name: Ensure OpenShift router correctly rolls out (best-effort today)
     command: |