openstack-ansible-os_swift/tasks
Jesse Pretorius ccc2f8cc49 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: I994ccc0d20e4ec72955e625119a35856a7171ba3
2018-08-03 09:59:38 +00:00
..
main.yml Allow tags to be used for MQ tasks 2018-08-03 09:59:38 +00:00
mq_setup.yml Allow tags to be used for MQ tasks 2018-08-03 09:59:38 +00:00
swift_calculate_addresses.yml Fix typo in error message 2017-01-11 16:09:16 +00:00
swift_check_hashes.yml Add check for swift_hash_path_ variables 2016-09-14 13:06:53 +00:00
swift_install.yml Fix usage of "|" for tests 2018-07-30 08:39:35 +00:00
swift_install_source.yml Execute service setup against a delegated host using Ansible built-in modules 2018-07-31 17:37:02 +00:00
swift_key_distribute.yml Cleanup/standardize usage of tags 2016-08-16 09:30:41 -05:00
swift_key_populate.yml Cleanup/standardize usage of tags 2016-08-16 09:30:41 -05:00
swift_key_setup.yml Change include: to include_tasks: 2018-02-16 19:32:48 +00:00
swift_post_install.yml Use dictionary for service mappings 2016-10-13 13:30:58 +01:00
swift_pre_install.yml Converted the limits config to use systemd 2017-01-30 18:56:52 +00:00
swift_proxy_hosts.yml Fix usage of "|" for tests 2018-07-30 08:39:35 +00:00
swift_pypy_setup.yml Fix usage of "|" for tests 2018-07-30 08:39:35 +00:00
swift_rings.yml Drop SELinux support from os_swift 2018-06-30 13:30:47 -04:00
swift_rings_build.yml Remove jinja2 delimiters from when 2017-12-01 10:24:05 -06:00
swift_rings_check.yml Fix linting issues for ansible-lint 3.4.1 2016-11-02 13:03:19 +00:00
swift_rings_distribute.yml Suppress rsync warnings w/command 2017-09-01 09:39:40 -05:00
swift_rings_md5sum.yml Fix linting issues for ansible-lint 3.4.1 2016-11-02 13:03:19 +00:00
swift_rings_post_distribution_check.yml Bring consistency to tags 2017-01-13 13:44:06 +00:00
swift_service_setup.yml Execute service setup against a delegated host using Ansible built-in modules 2018-07-31 17:37:02 +00:00
swift_storage_hosts.yml Change include: to include_tasks: 2018-02-16 19:32:48 +00:00
swift_storage_hosts_account.yml Use dictionary for service mappings 2016-10-13 13:30:58 +01:00
swift_storage_hosts_container.yml Update container-sync to use internal client 2017-04-04 15:04:19 +00:00
swift_storage_hosts_object.yml Use dictionary for service mappings 2016-10-13 13:30:58 +01:00
swift_storage_hosts_setup.yml Add CentOS7 support for Swift 2016-11-14 17:03:02 +00:00