diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2018-12-19 09:50:10 -0500 |
---|---|---|
committer | Larry Smith Jr <mrlesmithjr@gmail.com> | 2018-12-19 09:50:10 -0500 |
commit | 9cac39786e63d655eceb3ecbd74b3df8461654d3 (patch) | |
tree | 6e5dc8783adb36ebe81a3b6d28e6399fd256228e /tasks/redhat.yml | |
parent | 80121e2128f9b9702fbcb2c1fe713a0d42212c90 (diff) | |
download | ansible-rabbitmq-9cac39786e63d655eceb3ecbd74b3df8461654d3.tar.gz ansible-rabbitmq-9cac39786e63d655eceb3ecbd74b3df8461654d3.tar.zst ansible-rabbitmq-9cac39786e63d655eceb3ecbd74b3df8461654d3.zip |
Cleaned up Vagrant and merged new commits
Diffstat (limited to 'tasks/redhat.yml')
-rw-r--r-- | tasks/redhat.yml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tasks/redhat.yml b/tasks/redhat.yml index afa714c..0c7b97a 100644 --- a/tasks/redhat.yml +++ b/tasks/redhat.yml | |||
@@ -1,24 +1,27 @@ | |||
1 | --- | 1 | --- |
2 | - name: redhat | installing pre-reqs | 2 | - name: redhat | installing pre-reqs |
3 | yum: | 3 | yum: |
4 | name: "{{ item }}" | 4 | name: ['epel-release', 'wget'] |
5 | state: present | 5 | state: present |
6 | become: true | 6 | become: true |
7 | with_items: | 7 | register: result |
8 | - epel-release | 8 | until: result is successful |
9 | - wget | ||
10 | 9 | ||
11 | - name: redhat | installing erlang | 10 | - name: redhat | installing erlang |
12 | yum: | 11 | yum: |
13 | name: "erlang" | 12 | name: erlang |
14 | state: present | 13 | state: present |
15 | become: true | 14 | become: true |
15 | register: result | ||
16 | until: result is successful | ||
16 | 17 | ||
17 | - name: redhat | adding RabbitMQ public GPG key | 18 | - name: redhat | adding RabbitMQ public GPG key |
18 | rpm_key: | 19 | rpm_key: |
19 | key: "{{ rabbitmq_redhat_repo_key }}" | 20 | key: "{{ rabbitmq_redhat_repo_key }}" |
20 | state: present | 21 | state: present |
21 | become: true | 22 | become: true |
23 | register: result | ||
24 | until: result is successful | ||
22 | 25 | ||
23 | - name: redhat | downloading RabbitMQ | 26 | - name: redhat | downloading RabbitMQ |
24 | get_url: | 27 | get_url: |
@@ -31,10 +34,12 @@ | |||
31 | name: "/opt/{{ rabbitmq_redhat_package }}" | 34 | name: "/opt/{{ rabbitmq_redhat_package }}" |
32 | state: present | 35 | state: present |
33 | become: true | 36 | become: true |
37 | register: result | ||
38 | until: result is successful | ||
34 | 39 | ||
35 | - name: redhat | starting and enabling RabbitMQ service | 40 | - name: redhat | starting and enabling RabbitMQ service |
36 | service: | 41 | service: |
37 | name: "rabbitmq-server" | 42 | name: rabbitmq-server |
38 | state: started | 43 | state: started |
39 | enabled: yes | 44 | enabled: yes |
40 | become: true | 45 | become: true |