--- - name: Remove unused config file: path=/etc/rabbitmq/rabbitmq.config state=absent when: rabbitmq_conf == 'rabbit.conf' notify: restart rabbitmq-server tags: rabbit - name: Deploy configuration template: src={{ rabbitmq_conf }}.j2 dest=/etc/rabbitmq/{{ rabbitmq_conf }} notify: restart rabbitmq-server tags: rabbitmq - name: Deploy plugins to enable template: src=enabled_plugins.j2 dest=/etc/rabbitmq/enabled_plugins notify: restart rabbitmq-server tags: rabbitmq