Remove jinja2 delimiters in when

This patch removes some lingering jinja2 delimiters in when clauses.

Change-Id: Ia1d7e8c70ce322f487c4cacb72249704e2d46cf6
This commit is contained in:
Major Hayden 2017-11-29 13:16:32 -06:00
parent d5773de2a8
commit a777dc8c1a
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
3 changed files with 5 additions and 5 deletions

View File

@ -51,12 +51,12 @@
- role: haproxy_endpoints
haproxy_state: disabled
static: no
when: "{{ groups['haproxy'] | default([]) | length > 0 }}"
when: "groups['haproxy'] | default([]) | length > 0"
- role: "galera_server"
- role: haproxy_endpoints
haproxy_state: enabled
static: no
when: "{{ groups['haproxy'] | default([]) | length > 0 }}"
when: "groups['haproxy'] | default([]) | length > 0"
- role: "rsyslog_client"
rsyslog_client_log_rotate_file: galera_log_rotate
rsyslog_client_log_dir: "/var/log/mysql_logs"

View File

@ -77,7 +77,7 @@
vars:
haproxy_backend: "{{ item }}"
haproxy_state: disabled
when: "{{ groups['keystone_all'] | length > 1 }}"
when: "groups['keystone_all'] | length > 1"
with_items:
- "keystone_service-back"
- "keystone_admin-back"
@ -142,7 +142,7 @@
vars:
haproxy_backend: "{{ item }}"
haproxy_state: enabled
when: "{{ groups['keystone_all'] | length > 1 }}"
when: "groups['keystone_all'] | length > 1"
with_items:
- "keystone_service-back"
- "keystone_admin-back"

View File

@ -192,7 +192,7 @@
with_items:
- /etc/openstack_deploy/group_vars
- /etc/openstack_deploy/host_vars
when: "{{ (lookup('env','ACTION') | default(false,true)) == 'varstest' }}"
when: "(lookup('env','ACTION') | default(false,true)) == 'varstest'"
- name: Create user-space overrides
lineinfile: