forked from jasonroyle/ansible-role-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using new RabbitMQ config format (#5)
- Loading branch information
Showing
12 changed files
with
42 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
--- | ||
- name: ensure old config file does not exist | ||
file: | ||
path: /etc/rabbitmq/rabbitmq.config | ||
state: absent | ||
notify: restart rabbitmq-server | ||
- name: configure rabbitmq | ||
template: | ||
src: rabbitmq.config.j2 | ||
dest: /etc/rabbitmq/rabbitmq.config | ||
src: rabbitmq.conf.j2 | ||
dest: /etc/rabbitmq/rabbitmq.conf | ||
notify: restart rabbitmq-server | ||
when: rabbitmq_config is defined | ||
- name: configure rabbitmq environment | ||
template: | ||
src: rabbitmq-env.conf.j2 | ||
dest: /etc/rabbitmq/rabbitmq-env.conf | ||
notify: restart rabbitmq-server | ||
when: rabbitmq_env is defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
92 changes: 0 additions & 92 deletions
92
templates/config-encoder-macros/macros/erlang_encode_macro.j2
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{ ansible_managed | comment }} | ||
|
||
{% for item in (rabbitmq_env | dict2items | sort(attribute='key')) %} | ||
{{ item.key }}={{ item.value | to_json }} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{ ansible_managed | comment }} | ||
|
||
{% for item in (rabbitmq_config | dict2items | sort(attribute='key')) %} | ||
{{ item.key }} = {{ item.value | to_json | replace('"', '') }} | ||
{% endfor %} |
This file was deleted.
Oops, something went wrong.