rabbit.yml 679 B

123456789101112131415161718192021
  1. ---
  2. # tasks/Ubuntu/rabbit.yml: Deploy RabbitMQ
  3. # Specific to Ubuntu
  4. - include_vars: "{{ item }}"
  5. with_first_found:
  6. - "{{ ansible_distribution }}.yml"
  7. - "{{ ansible_os_family }}.yml"
  8. - default.yml
  9. - name: Ensure the RabbitMQ APT repo GPG key is present
  10. apt_key: url=https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
  11. state=present
  12. - name: Ensure the RabbitMQ APT repo is present
  13. apt_repository: repo='deb http://www.rabbitmq.com/debian/ testing main'
  14. state=present update_cache=yes
  15. - name: Ensure RabbitMQ is installed
  16. apt: name=rabbitmq state={{ rabbitmq_pkg_state }}
  17. update_cache=yes