From 109c6b750751d1c5cd216ad2f09258cf512c4c9e Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Sat, 3 Dec 2016 17:51:25 -0500 Subject: Addressed issue #6 Signed-off-by: Larry Smith Jr --- tasks/redhat.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tasks/redhat.yml (limited to 'tasks/redhat.yml') diff --git a/tasks/redhat.yml b/tasks/redhat.yml new file mode 100644 index 0000000..484597d --- /dev/null +++ b/tasks/redhat.yml @@ -0,0 +1,40 @@ +--- +- 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 -- cgit v1.2.3