diff options
author | Roland Chernov <mail@roland.black> | 2016-06-29 02:06:25 +0900 |
---|---|---|
committer | Roland Chernov <mail@roland.black> | 2016-06-29 02:27:38 +0900 |
commit | b6c0cb98568bb67c29bc54b7bc061a2138af6666 (patch) | |
tree | 92e2b0a4b2df0cc9bc8a809b4e7dd35181d7de8f /tasks/fedora.yml | |
parent | bc0ca3da9ef79d3e75191500e941e63c5dbb6158 (diff) | |
download | ansible-rabbitmq-b6c0cb98568bb67c29bc54b7bc061a2138af6666.tar.gz ansible-rabbitmq-b6c0cb98568bb67c29bc54b7bc061a2138af6666.tar.zst ansible-rabbitmq-b6c0cb98568bb67c29bc54b7bc061a2138af6666.zip |
Separate RedHat and Fedora
Diffstat (limited to 'tasks/fedora.yml')
-rw-r--r-- | tasks/fedora.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tasks/fedora.yml b/tasks/fedora.yml new file mode 100644 index 0000000..3d92963 --- /dev/null +++ b/tasks/fedora.yml | |||
@@ -0,0 +1,39 @@ | |||
1 | --- | ||
2 | - name: fedora | installing pre-reqs | ||
3 | dnf: | ||
4 | name: "{{ item }}" | ||
5 | state: present | ||
6 | with_items: | ||
7 | - wget | ||
8 | |||
9 | - name: fedora | installing erlang | ||
10 | dnf: | ||
11 | name: "erlang" | ||
12 | state: present | ||
13 | |||
14 | - name: fedora | adding RabbitMQ public GPG key | ||
15 | rpm_key: | ||
16 | key: "{{ rabbitmq_redhat_repo_key }}" | ||
17 | state: present | ||
18 | |||
19 | - name: fedora | downloading RabbitMQ | ||
20 | get_url: | ||
21 | url: "{{ rabbitmq_redhat_url }}/{{ rabbitmq_redhat_package }}" | ||
22 | dest: "/opt/{{ rabbitmq_redhat_package }}" | ||
23 | |||
24 | - name: fedora | installing RabbitMQ | ||
25 | dnf: | ||
26 | name: "/opt/{{ rabbitmq_redhat_package }}" | ||
27 | state: present | ||
28 | |||
29 | - name: fedora | starting and enabling RabbitMQ service | ||
30 | service: | ||
31 | name: "rabbitmq-server" | ||
32 | state: started | ||
33 | enabled: yes | ||
34 | |||
35 | - name: fedora | enabling the RabbitMQ Management Console | ||
36 | rabbitmq_plugin: | ||
37 | names: rabbitmq_management | ||
38 | state: enabled | ||
39 | notify: restart rabbitmq-server | ||