kolla-ansible/ansible/roles/common/tasks
Andrew Widdersheim 4963898b21 Remove redundant common play and add haproxy hosts
In cf0c25c37 [0] a play was added to run the common role against all
hosts. This ends up being redundant since every role includes the common
role as a dependancy. The reasoning behind this change as pointed out by
the author in the review comments [1] was so that an operator could run
with '--tags common' and just have the common role applied.

To avoid redundancy, the common play has been removed and tags have been
added to the common role. This allows for just the common role to run
when another role is including it while reducing redundancy.

A side affect of removing the common playbook which runs against all
hosts is that not all facts on all hosts are gathered at the beginning
of the site.yml. This breaks the haproxy role since it relies heavily on
facts to build out the haproxy.cfg file.

Previously, the haproxy role would include several hosts purely for fact
gathering purposes as pointed out in c68c9d95 [2] and a guard was put in
place so that the tasks would only run against the 'haproxy' group. In
423e3f3f [3] these hosts were removed. After reading the review [4],
this seems to have been done without fully understanding why the hosts
were there in the first place.

This change did not break anything however since the common role that
ran on all hosts mentioned previously would gather all of the facts
necessary.

To fix this fact gathering issue replace the common role play with a
play that will simply gather facts with an 'always' tag to ensure it is
run regardless of what might be passed in the '--tags' argument by the
operator.

Kudos to Paul Bourke for helping identify many of these issues.

[0] cf0c25c37d
[1] https://review.openstack.org/#/c/369212/
[2] c68c9d95fc
[3] 423e3f3fdf
[4] https://review.openstack.org/#/c/355861

TrivialFix
Closes-Bug: #1628472

Change-Id: Ia94146579e743935501f1ff4b4c1bf6cb7c43aa3
2016-09-30 11:56:42 -04:00
..
bootstrap.yml map the host localtime to the container 2016-05-03 09:27:51 +08:00
config.yml Only enabled services log files 2016-09-18 13:21:58 +02:00
deploy.yml Add Heka to common role 2016-02-19 20:32:00 +00:00
do_reconfigure.yml Add reconfigure for heka 2016-03-03 12:57:00 +01:00
main.yml Remove redundant common play and add haproxy hosts 2016-09-30 11:56:42 -04:00
pull.yml Change ansible image to kolla_toolbox 2016-05-23 10:13:48 -04:00
reconfigure.yml Added serial option to site.yml. 2016-09-13 09:26:51 +00:00
start.yml Fix idempotent for initializing toolbox container task 2016-09-22 14:06:28 +00:00
upgrade.yml fix the common upgrade 2016-09-14 02:54:29 +00:00