rabbitmq_config_service: false
rabbitmq_config_file: etc/rabbitmq/rabbitmq.config.j2
+rabbitmq_config_env_file: etc/rabbitmq/rabbitmq-env.conf.j2
+rabbitmq_env_config: {}
# rabbitmq_debian_repo: deb http://www.rabbitmq.com/debian/ testing main
#other repos
dest: "/etc/rabbitmq/rabbitmq.config"
become: true
notify: "restart rabbitmq-server"
+
+- name: config | Configuring RabbitMQ environemnt
+ template:
+ src: "{{ rabbitmq_config_env_file }}"
+ dest: "/etc/rabbitmq/rabbitmq-env.conf"
+ become: true
+ notify: "restart rabbitmq-server"
--- /dev/null
+# {{ ansible_managed }}
+# Note that the variables do not have the RABBITMQ_ prefix.
+#
+{% for key,value in rabbitmq_env_config.iteritems() %}
+{{ key }}={{ value }}
+{% endfor %}