Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
routing_key: logstash
tags: 'ha-mode=all,ha-sync-mode=automatic'
rabbitmq_debian_repo: 'deb http://www.rabbitmq.com/debian/ testing main'
-rabbitmq_debian_repo_key: 'http://www.rabbitmq.com/rabbitmq-signing-key-public.asc'
+rabbitmq_debian_repo_key: 'https://www.rabbitmq.com/rabbitmq-release-signing-key.asc'
rabbitmq_master: [] #defines the inventory host that should be considered master...define here or in group_vars/group
rabbitmq_redhat_repo_key: 'https://www.rabbitmq.com/rabbitmq-signing-key-public.asc'
rabbitmq_redhat_package: 'rabbitmq-server-{{ rabbitmq_redhat_version }}-1.noarch.rpm'
apt_repository:
repo: "{{ rabbitmq_debian_repo }}"
state: present
+ register: "rabbitmq_repo_added"
+
+- name: debian | updating apt cache
+ apt:
+ update_cache: yes
+ when: rabbitmq_repo_added.changed
- name: debian | installing RabbitMQ server
apt: