Commit f1a63102 by e0d

a few tags for task limits.

parent 22941c38
...@@ -21,3 +21,4 @@ ...@@ -21,3 +21,4 @@
tasks: tasks:
- name: reboot - name: reboot
command: /sbin/shutdown -r now "Reboot is triggered by Ansible" command: /sbin/shutdown -r now "Reboot is triggered by Ansible"
tags: reboot
...@@ -76,6 +76,9 @@ ...@@ -76,6 +76,9 @@
- name: add vhosts - name: add vhosts
rabbitmq_vhost: name={{ item }} state=present rabbitmq_vhost: name={{ item }} state=present
with_items: RABBITMQ_VHOSTS with_items: RABBITMQ_VHOSTS
tags:
- vhosts
- maintenance
- name: add admin users - name: add admin users
rabbitmq_user: > rabbitmq_user: >
...@@ -87,10 +90,16 @@ ...@@ -87,10 +90,16 @@
- ${rabbitmq_auth_config.admins} - ${rabbitmq_auth_config.admins}
- RABBITMQ_VHOSTS - RABBITMQ_VHOSTS
when: "'admins' in rabbitmq_auth_config" when: "'admins' in rabbitmq_auth_config"
tags:
- users
- maintenance
- name: make queues mirrored - name: make queues mirrored
shell: "/usr/sbin/rabbitmqctl set_policy HA '^(?!amq\\.).*' '{\"ha-mode\": \"all\"}'" shell: "/usr/sbin/rabbitmqctl set_policy HA '^(?!amq\\.).*' '{\"ha-mode\": \"all\"}'"
when: RABBITMQ_CLUSTERED or rabbitmq_clustered_hosts|length > 1 when: RABBITMQ_CLUSTERED or rabbitmq_clustered_hosts|length > 1
tags:
- ha
- maintenance
# #
# Depends upon the management plugin # 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