Move included vars to vars section
Resolve [DEPRECATION WARNING]: Specifying include variables at the top-level of the task is deprecated. Change-Id: If9705961f7f699434d7da875cbad307fbfa618f8
This commit is contained in:
@@ -78,7 +78,8 @@
|
||||
- { key: "net.ipv4.ip_local_reserved_ports", value: "{{ keystone_admin_port }}"}
|
||||
when: is_metal | bool
|
||||
- include: common-tasks/haproxy-endpoint-manage.yml
|
||||
haproxy_state: disabled
|
||||
vars:
|
||||
haproxy_state: disabled
|
||||
when: "{{ groups['keystone_all'] | length > 1 }}"
|
||||
roles:
|
||||
- role: "os_keystone"
|
||||
@@ -96,7 +97,8 @@
|
||||
- crontab
|
||||
post_tasks:
|
||||
- include: common-tasks/haproxy-endpoint-manage.yml
|
||||
haproxy_state: enabled
|
||||
vars:
|
||||
haproxy_state: enabled
|
||||
when: "{{ groups['keystone_all'] | length > 1 }}"
|
||||
vars:
|
||||
is_metal: "{{ properties.is_metal|default(false) }}"
|
||||
|
||||
Reference in New Issue
Block a user