rabbitmq/templates/rabbitmq.conf.j2
2023-02-08 01:38:33 +03:00

9 lines
257 B
Django/Jinja

{% if rabbitmq_conf is defined %}
{{ rabbitmq_conf }}
{% endif %}
{% if rabbitmq_cluster %}
{% for host in ansible_play_hosts %}
cluster_formation.classic_config.nodes.{{ loop.index }} = rabbit@{{ hostvars[host].ansible_hostname }}
{% endfor %}
{% endif %}