From e7263ad7f36462b6fe08c11dfa99f09e2bfc636a Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Wed, 12 Apr 2017 12:53:06 -0700 Subject: [PATCH] Move included vars to vars section Resolve [DEPRECATION WARNING]: Specifying include variables at the top-level of the task is deprecated. Change-Id: If9705961f7f699434d7da875cbad307fbfa618f8 --- playbooks/os-keystone-install.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/os-keystone-install.yml b/playbooks/os-keystone-install.yml index e29a385ee5..ace9b51522 100644 --- a/playbooks/os-keystone-install.yml +++ b/playbooks/os-keystone-install.yml @@ -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) }}"