diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2018-09-20 11:44:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 11:44:11 -0400 |
commit | 991fe83812bb2814096e8ec3e8f6dc86fee5f3ef (patch) | |
tree | 8ca6731d41efc8879861926cd7a8f57c0523891d | |
parent | b8231cc868d4e2cfa1a1ae0612509585136cc8ca (diff) | |
parent | 1f81e34f0de8b9ee1639630487149fb984e3c0b4 (diff) | |
download | ansible-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.yml | 1 | ||||
-rw-r--r-- | tasks/config.yml | 2 |
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: [] | |||
12 | rabbitmq_config_ha: false | 12 | rabbitmq_config_ha: false |
13 | 13 | ||
14 | rabbitmq_config_service: false | 14 | rabbitmq_config_service: false |
15 | rabbitmq_config_file: 'etc/rabbitmq/rabbitmq.config.j2' | ||
15 | 16 | ||
16 | rabbitmq_debian_repo: 'deb http://www.rabbitmq.com/debian/ testing main' | 17 | rabbitmq_debian_repo: 'deb http://www.rabbitmq.com/debian/ testing main' |
17 | rabbitmq_debian_repo_key: 'https://www.rabbitmq.com/rabbitmq-release-signing-key.asc' | 18 | rabbitmq_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" |