Commit 2eefffb2 by e0d

Merge pull request #938 from edx/e0d/ops-tags

a few tags for task limits.
parents 1d1a03a7 f1a63102
......@@ -21,3 +21,4 @@
tasks:
- name: reboot
command: /sbin/shutdown -r now "Reboot is triggered by Ansible"
tags: reboot
......@@ -76,6 +76,9 @@
- name: add vhosts
rabbitmq_vhost: name={{ item }} state=present
with_items: RABBITMQ_VHOSTS
tags:
- vhosts
- maintenance
- name: add admin users
rabbitmq_user: >
......@@ -87,10 +90,16 @@
- ${rabbitmq_auth_config.admins}
- RABBITMQ_VHOSTS
when: "'admins' in rabbitmq_auth_config"
tags:
- users
- maintenance
- name: make queues mirrored
shell: "/usr/sbin/rabbitmqctl set_policy HA '^(?!amq\\.).*' '{\"ha-mode\": \"all\"}'"
when: RABBITMQ_CLUSTERED or rabbitmq_clustered_hosts|length > 1
tags:
- ha
- maintenance
#
# Depends upon the management plugin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment