# rabbitmq json config to setup exchanges and queues

**URL:** <https://forum.ansible.com/t/rabbitmq-json-config-to-setup-exchanges-and-queues/14446>\
**Category:** Ansible Project\
**Created:** [January 28, 2014, 5:31pm UTC](https://forum.ansible.com/t/rabbitmq-json-config-to-setup-exchanges-and-queues/14446 "2014-01-28T17:31:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.neudorfer](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Post date:** [January 28, 2014, 5:31pm UTC](https://forum.ansible.com/t/rabbitmq-json-config-to-setup-exchanges-and-queues/14446/1 "2014-01-28T17:31:20Z")

</div>

Setting up rabbitmq with ansible works really well but I also need to pass it a config file to setup the exchanges and queues. According to the [rabbitmq documentation](http://www.rabbitmq.com/management.html#load-definitions) this is done with passing the json file to the management plugin. Is this possible to do with the rabbitmq\_parameter module?

---

<div class="post-metadata">

**Author:** ![Chris\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@Chris\_Hoffman](https://forum.ansible.com/u/Chris_Hoffman)\
**Post date:** [January 31, 2014, 6:45pm UTC](https://forum.ansible.com/t/rabbitmq-json-config-to-setup-exchanges-and-queues/14446/2 "2014-01-31T18:45:10Z")

</div>

You should be able to just write the config file in the default location and when you restart rabbitmq it will pick up these settings. We usually have our publishers create exchanges and consumers create exchange, bindings, and queues as opposed as configuring them in the rabbitmq config files.
