From 4df02d66be895eb05dc32aba89efc54b5aa5d05c Mon Sep 17 00:00:00 2001 From: Chen Date: Wed, 31 May 2017 19:12:22 +0900 Subject: [PATCH] Update deprecated 'play_hosts' with 'ansible_play_batch' Ansible built-in variable 'play_hosts' has been deprecated since release 2.2, and replaced by a new 'ansible_play_batch' variable according to the official document below. We should reflect the update to playbook site.yml. link: http://docs.ansible.com/ansible/playbooks_variables.html Change-Id: I937fe93ea893a3469019a0759ec57d2e91e8adab Closes-Bug: #1694650 --- ansible/site.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/site.yml b/ansible/site.yml index 77d3f2905c..9f63fb079c 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -29,7 +29,7 @@ delegate_to: "{{ item }}" with_items: "{{ groups['all'] }}" when: - - (play_hosts | length) != (groups['all'] | length) + - (ansible_play_batch | length) != (groups['all'] | length) - name: Detect openstack_release variable hosts: all