Merge "Avoid facts gathered twice when deploying with --limit"

This commit is contained in:
Jenkins 2017-06-01 14:21:43 +00:00 committed by Gerrit Code Review
commit f0c404e6bc

@ -10,8 +10,9 @@
gather_facts: false
tasks:
- setup:
tags: always
when:
- (play_hosts | length) == (groups['all'] | length)
# NOTE(pbourke): This case covers deploying subsets of hosts using --limit. The
# limit arg will cause the first play to gather facts only about that node,
# meaning facts such as IP addresses for rabbitmq nodes etc. will be undefined