aboutsummaryrefslogblamecommitdiffhomepage
path: root/tasks/fedora.yml
blob: 6ac9c03fc09d121e5220234577d15ee847c705ac (plain) (tree)
1
2
3
4
5
6




                                    
              






                                  
              




                                               
              




                                                                  
              




                                              
              





                                                       
              





                                                         
              
---
- name: fedora | installing pre-reqs
  dnf:
    name: "{{ item }}"
    state: present
  become: true
  with_items:
    - wget

- name: fedora | installing erlang
  dnf:
    name: "erlang"
    state: present
  become: true

- name: fedora | adding RabbitMQ public GPG key
  rpm_key:
    key: "{{ rabbitmq_redhat_repo_key }}"
    state: present
  become: true

- name: fedora | downloading RabbitMQ
  get_url:
    url: "{{ rabbitmq_redhat_url }}/{{ rabbitmq_redhat_package }}"
    dest: "/opt/{{ rabbitmq_redhat_package }}"
  become: true

- name: fedora | installing RabbitMQ
  dnf:
    name: "/opt/{{ rabbitmq_redhat_package }}"
    state: present
  become: true

- name: fedora | starting and enabling RabbitMQ service
  service:
    name: "rabbitmq-server"
    state: started
    enabled: yes
  become: true

- name: fedora | enabling the RabbitMQ Management Console
  rabbitmq_plugin:
    names: rabbitmq_management
    state: enabled
  notify: restart rabbitmq-server
  become: true