]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/commitdiff
Fixed signing key and updating cache
authorLarry Smith Jr <mrlesmithjr@gmail.com>
Wed, 8 Jun 2016 20:31:50 +0000 (16:31 -0400)
committerLarry Smith Jr <mrlesmithjr@gmail.com>
Wed, 8 Jun 2016 20:31:50 +0000 (16:31 -0400)
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
defaults/main.yml
tasks/debian.yml

index 65c00ba1823e1df20d269a036d55f7fd0b4c693e..4923974ed53270799b7a835d8ffba71dbe969f96 100644 (file)
@@ -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'
index 12ddd3bfb70558926fcd9db94e1fc7d24255f20d..a031ead18b4dae014bb1689993605106ee905056 100644 (file)
@@ -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: