aboutsummaryrefslogblamecommitdiffhomepage
path: root/tasks/redhat.yml
blob: 484597d923b39ce994b7bf241a06431b875d9ee3 (plain) (tree)







































                                                                  
---
- name: redhat | installing pre-reqs
  yum:
    name: "{{ item }}"
    state: present
  with_items:
    - epel-release
    - wget

- name: redhat | installing erlang
  yum:
    name: "erlang"
    state: present

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

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

- name: redhat | installing RabbitMQ
  yum:
    name: "/opt/{{ rabbitmq_redhat_package }}"
    state: present

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

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