diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2016-06-08 16:31:50 -0400 |
---|---|---|
committer | Larry Smith Jr <mrlesmithjr@gmail.com> | 2016-06-08 16:31:50 -0400 |
commit | bc0ca3da9ef79d3e75191500e941e63c5dbb6158 (patch) | |
tree | a71c5daeb867053d1c5c889d7717945664031053 | |
parent | ce474be41d93f6907cff91993fe8792eb8575d43 (diff) | |
download | ansible-rabbitmq-bc0ca3da9ef79d3e75191500e941e63c5dbb6158.tar.gz ansible-rabbitmq-bc0ca3da9ef79d3e75191500e941e63c5dbb6158.tar.zst ansible-rabbitmq-bc0ca3da9ef79d3e75191500e941e63c5dbb6158.zip |
Fixed signing key and updating cache
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
-rw-r--r-- | defaults/main.yml | 2 | ||||
-rw-r--r-- | tasks/debian.yml | 6 |
2 files changed, 7 insertions, 1 deletions
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: | |||
12 | routing_key: logstash | 12 | routing_key: logstash |
13 | tags: 'ha-mode=all,ha-sync-mode=automatic' | 13 | tags: 'ha-mode=all,ha-sync-mode=automatic' |
14 | rabbitmq_debian_repo: 'deb http://www.rabbitmq.com/debian/ testing main' | 14 | rabbitmq_debian_repo: 'deb http://www.rabbitmq.com/debian/ testing main' |
15 | rabbitmq_debian_repo_key: 'http://www.rabbitmq.com/rabbitmq-signing-key-public.asc' | 15 | rabbitmq_debian_repo_key: 'https://www.rabbitmq.com/rabbitmq-release-signing-key.asc' |
16 | rabbitmq_master: [] #defines the inventory host that should be considered master...define here or in group_vars/group | 16 | rabbitmq_master: [] #defines the inventory host that should be considered master...define here or in group_vars/group |
17 | rabbitmq_redhat_repo_key: 'https://www.rabbitmq.com/rabbitmq-signing-key-public.asc' | 17 | rabbitmq_redhat_repo_key: 'https://www.rabbitmq.com/rabbitmq-signing-key-public.asc' |
18 | rabbitmq_redhat_package: 'rabbitmq-server-{{ rabbitmq_redhat_version }}-1.noarch.rpm' | 18 | 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 @@ | |||
8 | apt_repository: | 8 | apt_repository: |
9 | repo: "{{ rabbitmq_debian_repo }}" | 9 | repo: "{{ rabbitmq_debian_repo }}" |
10 | state: present | 10 | state: present |
11 | register: "rabbitmq_repo_added" | ||
12 | |||
13 | - name: debian | updating apt cache | ||
14 | apt: | ||
15 | update_cache: yes | ||
16 | when: rabbitmq_repo_added.changed | ||
11 | 17 | ||
12 | - name: debian | installing RabbitMQ server | 18 | - name: debian | installing RabbitMQ server |
13 | apt: | 19 | apt: |