Merge "Remove jinja2 delimiters in when"
This commit is contained in:
commit
d784bea5ec
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user