rabbitmq_config_file: 'etc/rabbitmq/rabbitmq.config.j2'
rabbitmq_debian_repo: 'deb http://www.rabbitmq.com/debian/ testing main'
+#other repos
+#rabbitmq_debian_repo: deb https://dl.bintray.com/rabbitmq/debian {{ ansible_distribution_release }} main #bintray
rabbitmq_debian_repo_key: 'https://www.rabbitmq.com/rabbitmq-release-signing-key.asc'
+#rabbitmq_debian_repo_key: https://bintray.com/user/downloadSubjectPublicKey?username=rabbitmq
+rabbitmq_debian_erlang_from_rabbit: false
+#rabbitmq_debian_version: 3.7.9 # current version if not defined
# Defines if setting up a rabbitmq cluster
rabbitmq_enable_clustering: false
apt_repository:
repo: "{{ rabbitmq_debian_repo }}"
state: present
- register: "rabbitmq_repo_added"
become: true
-- name: debian | updating apt cache
- apt:
- update_cache: yes
+- name: debian | add Rabbitmq erlang repo key
+ apt_key:
+ url: https://bintray.com/user/downloadSubjectPublicKey?username=rabbitmq-erlang
+ state: present
+ become: true
+ when: rabbitmq_debian_erlang_from_rabbit
+
+- name: debian | add Rabbitmq erlang repo
+ apt_repository:
+ repo: deb https://dl.bintray.com/rabbitmq-erlang/debian {{ ansible_distribution_release }} erlang
+ state: present
become: true
- when: rabbitmq_repo_added.changed
+ when: rabbitmq_debian_erlang_from_rabbit
- name: debian | installing RabbitMQ server
apt:
state: present
become: true
with_items:
- - rabbitmq-server
+ - rabbitmq-server{{ (rabbitmq_debian_version is defined) | ternary(['=',rabbitmq_debian_version] | join(''),'')}}
- name: debian | enabling the RabbitMQ Management Console
rabbitmq_plugin: