diff options
Diffstat (limited to 'tasks/debian.yml')
-rw-r--r-- | tasks/debian.yml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/tasks/debian.yml b/tasks/debian.yml index f35bf55..0a6572e 100644 --- a/tasks/debian.yml +++ b/tasks/debian.yml | |||
@@ -1,21 +1,35 @@ | |||
1 | --- | 1 | --- |
2 | - name: debian | Adding Pre-Reqs | ||
3 | apt: | ||
4 | name: ['gnupg2'] | ||
5 | state: present | ||
6 | become: true | ||
7 | register: result | ||
8 | until: result is successful | ||
9 | |||
2 | - name: debian | adding RabbitMQ public GPG key to the apt repo | 10 | - name: debian | adding RabbitMQ public GPG key to the apt repo |
3 | apt_key: | 11 | apt_key: |
4 | url: "{{ rabbitmq_debian_repo_key }}" | 12 | url: "{{ rabbitmq_debian_repo_key }}" |
5 | state: present | 13 | state: present |
6 | become: true | 14 | become: true |
15 | register: result | ||
16 | until: result is successful | ||
7 | 17 | ||
8 | - name: debian | adding RabbitMQ repo | 18 | - name: debian | adding RabbitMQ repo |
9 | apt_repository: | 19 | apt_repository: |
10 | repo: "{{ rabbitmq_debian_repo }}" | 20 | repo: "{{ rabbitmq_debian_repo }}" |
11 | state: present | 21 | state: present |
12 | become: true | 22 | become: true |
23 | register: result | ||
24 | until: result is successful | ||
13 | 25 | ||
14 | - name: debian | add Rabbitmq erlang repo key | 26 | - name: debian | add Rabbitmq erlang repo key |
15 | apt_key: | 27 | apt_key: |
16 | url: https://bintray.com/user/downloadSubjectPublicKey?username=rabbitmq-erlang | 28 | url: https://bintray.com/user/downloadSubjectPublicKey?username=rabbitmq-erlang |
17 | state: present | 29 | state: present |
18 | become: true | 30 | become: true |
31 | register: result | ||
32 | until: result is successful | ||
19 | when: rabbitmq_debian_erlang_from_rabbit | 33 | when: rabbitmq_debian_erlang_from_rabbit |
20 | 34 | ||
21 | - name: debian | add Rabbitmq erlang repo | 35 | - name: debian | add Rabbitmq erlang repo |
@@ -27,11 +41,13 @@ | |||
27 | 41 | ||
28 | - name: debian | installing RabbitMQ server | 42 | - name: debian | installing RabbitMQ server |
29 | apt: | 43 | apt: |
30 | name: "{{ item }}" | 44 | name: ['rabbitmq-server'] |
31 | state: present | 45 | state: present |
32 | become: true | 46 | become: true |
47 | register: result | ||
48 | until: result is successful | ||
33 | with_items: | 49 | with_items: |
34 | - rabbitmq-server{{ (rabbitmq_debian_version is defined) | ternary(['=',rabbitmq_debian_version] | join(''),'')}} | 50 | - rabbitmq-server{{ (rabbitmq_debian_version is defined) | ternary(['=',rabbitmq_debian_version] | join(''),'') }} |
35 | 51 | ||
36 | - name: debian | enabling the RabbitMQ Management Console | 52 | - name: debian | enabling the RabbitMQ Management Console |
37 | rabbitmq_plugin: | 53 | rabbitmq_plugin: |