aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2018-09-20 11:44:11 -0400
committerGitHub <noreply@github.com>2018-09-20 11:44:11 -0400
commit991fe83812bb2814096e8ec3e8f6dc86fee5f3ef (patch)
tree8ca6731d41efc8879861926cd7a8f57c0523891d
parentb8231cc868d4e2cfa1a1ae0612509585136cc8ca (diff)
parent1f81e34f0de8b9ee1639630487149fb984e3c0b4 (diff)
downloadansible-rabbitmq-991fe83812bb2814096e8ec3e8f6dc86fee5f3ef.tar.gz
ansible-rabbitmq-991fe83812bb2814096e8ec3e8f6dc86fee5f3ef.tar.zst
ansible-rabbitmq-991fe83812bb2814096e8ec3e8f6dc86fee5f3ef.zip
Merge pull request #16 from jqueuniet/master
Allow config file template customization
-rw-r--r--defaults/main.yml1
-rw-r--r--tasks/config.yml2
2 files changed, 2 insertions, 1 deletions
diff --git a/defaults/main.yml b/defaults/main.yml
index 2c51370..9e9f3c8 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -12,6 +12,7 @@ rabbitmq_config: []
12rabbitmq_config_ha: false 12rabbitmq_config_ha: false
13 13
14rabbitmq_config_service: false 14rabbitmq_config_service: false
15rabbitmq_config_file: 'etc/rabbitmq/rabbitmq.config.j2'
15 16
16rabbitmq_debian_repo: 'deb http://www.rabbitmq.com/debian/ testing main' 17rabbitmq_debian_repo: 'deb http://www.rabbitmq.com/debian/ testing main'
17rabbitmq_debian_repo_key: 'https://www.rabbitmq.com/rabbitmq-release-signing-key.asc' 18rabbitmq_debian_repo_key: 'https://www.rabbitmq.com/rabbitmq-release-signing-key.asc'
diff --git a/tasks/config.yml b/tasks/config.yml
index 9ea5da2..091cca1 100644
--- a/tasks/config.yml
+++ b/tasks/config.yml
@@ -1,7 +1,7 @@
1--- 1---
2- name: config | Configuring RabbitMQ 2- name: config | Configuring RabbitMQ
3 template: 3 template:
4 src: "etc/rabbitmq/rabbitmq.config.j2" 4 src: "{{ rabbitmq_config_file }}"
5 dest: "/etc/rabbitmq/rabbitmq.config" 5 dest: "/etc/rabbitmq/rabbitmq.config"
6 become: true 6 become: true
7 notify: "restart rabbitmq-server" 7 notify: "restart rabbitmq-server"