Skip to content
Snippets Groups Projects
Commit 4df02d66 authored by Chen's avatar Chen
Browse files

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
parent 841bc75a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment