From 86465624350d076f2e816b4552a22e1db8517166 Mon Sep 17 00:00:00 2001 From: Paul Bourke <paul.bourke@oracle.com> Date: Fri, 9 Jun 2017 13:43:37 +0100 Subject: [PATCH] Revert "Avoid facts gathered twice when deploying with --limit" This reverts commit d366dd7e4a0002a2e170dbbda1107f61807323e5 as it breaks deploying with --tags Change-Id: If0d510698d432b536617fcb10b775a1519c6dd8a --- ansible/site.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ansible/site.yml b/ansible/site.yml index ec2d43156b..77d3f2905c 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -10,9 +10,8 @@ gather_facts: false tasks: - setup: - when: - - (play_hosts | length) == (groups['all'] | length) - + tags: always + # 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 -- GitLab