From 1f81e34f0de8b9ee1639630487149fb984e3c0b4 Mon Sep 17 00:00:00 2001 From: Johann Queuniet Date: Thu, 20 Sep 2018 17:22:37 +0200 Subject: Allow config file template customization --- defaults/main.yml | 1 + tasks/config.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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: [] rabbitmq_config_ha: false rabbitmq_config_service: false +rabbitmq_config_file: 'etc/rabbitmq/rabbitmq.config.j2' rabbitmq_debian_repo: 'deb http://www.rabbitmq.com/debian/ testing main' 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 @@ --- - name: config | Configuring RabbitMQ template: - src: "etc/rabbitmq/rabbitmq.config.j2" + src: "{{ rabbitmq_config_file }}" dest: "/etc/rabbitmq/rabbitmq.config" become: true notify: "restart rabbitmq-server" -- cgit v1.2.3