From bc0ca3da9ef79d3e75191500e941e63c5dbb6158 Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Wed, 8 Jun 2016 16:31:50 -0400 Subject: Fixed signing key and updating cache Signed-off-by: Larry Smith Jr --- defaults/main.yml | 2 +- tasks/debian.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 65c00ba..4923974 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -12,7 +12,7 @@ rabbitmq_config: 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' diff --git a/tasks/debian.yml b/tasks/debian.yml index 12ddd3b..a031ead 100644 --- a/tasks/debian.yml +++ b/tasks/debian.yml @@ -8,6 +8,12 @@ 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: -- cgit v1.2.3