...
- name: create policy rabbitmq_policy: name={{ item.name }} vhost={{ item.vhost | default('/', false) }} pattern={{ item.pattern }} priority={{ item.priority }} tags={{ item.tags }} with_items: rabbitmq_policy_configuration
...
rabbitmq_policy_configuration
-name: GLOBAL
vhost: /
pattern: .*
priority: 0
tags: ha-mode=all,ha-sync-mode=automatic,max-length=1000000,expires=1296000000
failed: [10.*.*.*] => (item={'priority': 0, 'vhost': '/', 'tags': 'ha-mode=all,ha-sync-mode=automatic,max-length=1000000,expires=1296000000', 'name': 'GLOBAL', 'pattern': '.*'}) => {"cmd": "/usr/sbin/rabbitmqctl -q -n rabbit set_policy -p / GLOBAL '.*' '{\"ha-sync-mode\": \"automatic\", \"expires\": \"1296000000\", \"ha-mode\": \"all\", \"max-length\": \"1000000\"}' --priority 0", "failed": true, "item": {"name": "GLOBAL", "pattern": ".*", "priority": 0, "tags": "ha-mode=all,ha-sync-mode=automatic,max-length=1000000,expires=1296000000", "vhost": "/"}, "rc": 2}stderr: Error: Validation failed
<<"1296000000">> is not a valid queue expiry
msg: Error: Validation failed
rabbitmq_policy_configuration:
- name: GLOBAL
vhost: /
pattern: .*
priority: 0
tags:
ha-mode: all
ha-sync-mode: automatic
max-length: 1000000
expires: 1296000000
failed: [10.*.*.*] => (item={'priority': 0, 'vhost': '/', 'tags': {'ha-sync-mode': 'automatic', 'expires': 1296000000, 'ha-mode': 'all', 'max-length': 1000000}, 'name': 'GLOBAL', 'pattern': '.*'}) => {"failed": true, "item": {"name": "GLOBAL", "pattern": ".*", "priority": 0, "tags": {"expires": 1296000000, "ha-mode": "all", "ha-sync-mode": "automatic", "max-length": 1000000}, "vhost": "/"}}
msg: this module requires key=value arguments (['name=GLOBAL', 'vhost=/', 'pattern=.*', 'priority=0', 'tags={ha-sync-mode:', 'automatic,', 'expires:', '1296000000,', 'ha-mode:', 'all,', 'max-length:', '1000000}'])
FATAL: all hosts have already failed -- aborting
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/147323c3-d91e-4a89-83d9-9978866ac315%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.