From: Larry Smith Jr Date: Wed, 8 Jun 2016 20:31:50 +0000 (-0400) Subject: Fixed signing key and updating cache X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=bc0ca3da9ef79d3e75191500e941e63c5dbb6158;p=github%2Ffretlink%2Fansible-rabbitmq.git Fixed signing key and updating cache Signed-off-by: Larry Smith Jr --- 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: