openstack-ansible-os_watcher/tasks
Jesse Pretorius 69e0732b92 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: I43b13a1c4eda4a8742227380c3fbc1ca9a489408
2018-08-07 15:08:12 +01:00
..
install-apt.yml Fix usage of "|" for tests 2018-07-12 16:54:31 +02:00
main.yml Allow tags to be used for MQ tasks 2018-08-07 15:08:12 +01:00
mq_setup.yml Allow tags to be used for MQ tasks 2018-08-07 15:08:12 +01:00
watcher_db_setup.yml Move database creation into role 2018-06-29 13:23:31 +00:00
watcher_init.yml Ensure the components are isolated from the system 2017-03-30 15:07:48 +00:00
watcher_init_common.yml Force Ansible to use dynamic includes 2016-09-22 16:34:00 +01:00
watcher_init_systemd.yml Fix usage of "|" for tests 2018-07-12 16:54:31 +02:00
watcher_init_upstart.yml Fix usage of "|" for tests 2018-07-12 16:54:31 +02:00
watcher_install.yml Update to use oslo.messaging service for RPC and Notify 2018-07-26 09:16:46 +00:00
watcher_post_install.yml Initial commit 2016-08-22 13:37:00 -04:00
watcher_pre_install.yml Initial commit 2016-08-22 13:37:00 -04:00
watcher_service_setup.yml Execute service setup against a delegated host using Ansible built-in modules 2018-07-14 14:43:20 +01:00