openstack-ansible-os_trove/tasks
Jesse Pretorius 5333f1a759 Allow tags to be used for MQ tasks
The use of 'include_tasks' and a loop of variables creates
a situation where a user is unable to use tags to scope the
inclusion of only the MQ tasks when running the playbooks.

The use-case this is important for is when the rabbitmq
containers are destroyed and rebuilt in order to resolve
an issue with them, and the user wishes to quickly recreate
all the vhosts/users.

Ansible's 'include_tasks' is a dynamic inclusion, and dynamic
inclusions are not included when using tags. The nice thing
about dynamic inclusions is that they completely skip all
tasks when the condition does not apply, cutting down deploy
time. However, given the use-case, we should rather take on
the extra deployment time.

This patch changes the dynamic inclusion to a static one,
adds a 'common-mq' tag to cover all MQ implementations,
and re-implements the 'common-rabbitmq' tag for the tasks
that relate to RabbitMQ specifically.

It also implements conditionals for each task set so that
the rpc/notify tasks can be skipped if a vhost/user is not
required for that purpose (eg: swift does not use RPC, and
most roles will not use notifications by default).

Depends-On: https://review.openstack.org/588191
Change-Id: I320ae83839869ee89fa5db3bf5c55d245f3b17db
2018-08-07 15:06:11 +01:00
..
main.yml Allow tags to be used for MQ tasks 2018-08-07 15:06:11 +01:00
mq_setup.yml Allow tags to be used for MQ tasks 2018-08-07 15:06:11 +01:00
trove_apache.yml Update 2016-08-25 14:56:41 +02:00
trove_db_setup.yml Move database creation into role 2018-06-29 13:24:58 +00:00
trove_install.yml Execute service setup against a delegated host using Ansible built-in modules 2018-07-13 19:15:56 +00:00
trove_post_install.yml Adding the trove-guestagent.conf 2017-01-31 02:10:45 -06:00
trove_pre_install.yml Ensure 0755 default mode on new directories 2017-01-11 15:42:15 -06:00
trove_service_network.yml Do not log passwords 2018-04-18 12:01:48 +01:00
trove_service_setup.yml Add missing domain_id argument to os_project task 2018-07-30 14:12:02 +01:00