diff options
author | hyperized <gerben@hyperized.net> | 2019-01-11 18:25:04 +0100 |
---|---|---|
committer | John R Barker <john@johnrbarker.com> | 2019-01-11 17:25:04 +0000 |
commit | 64bacb0e024a78ec69794c92220216b0efec4853 (patch) | |
tree | 7441e7bc966195eac22430e03cf34e98d9391e29 /test/integration/targets/setup_rabbitmq/tasks/ubuntu.yml | |
parent | caa0c9d4ccfe00f9fec166c10d6421e452a00a62 (diff) | |
download | ansible-64bacb0e024a78ec69794c92220216b0efec4853.tar.gz |
Setup TLS integration test for RabbitMQ (#50363)
* Make TLS available for RabbitMQ
* Use correct path
* Include cleanup
* Also remove unused package
* Don't generate a TLS cert every time if one already has been generated
* Add newlines, clean up repository and clarify block purpose
* One too many new lines :)
* Make TLS certs static
Diffstat (limited to 'test/integration/targets/setup_rabbitmq/tasks/ubuntu.yml')
-rw-r--r-- | test/integration/targets/setup_rabbitmq/tasks/ubuntu.yml | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/test/integration/targets/setup_rabbitmq/tasks/ubuntu.yml b/test/integration/targets/setup_rabbitmq/tasks/ubuntu.yml index b03287986c..c3815a9019 100644 --- a/test/integration/targets/setup_rabbitmq/tasks/ubuntu.yml +++ b/test/integration/targets/setup_rabbitmq/tasks/ubuntu.yml @@ -1,5 +1,4 @@ --- - # https://www.rabbitmq.com/install-debian.html#apt-pinning - name: Pin erlang version that rabbitmq supports copy: @@ -38,8 +37,8 @@ - name: Add RabbitMQ repository apt_repository: - repo: 'deb https://dl.bintray.com/rabbitmq/debian {{ ansible_distribution_release }} main' - filename: 'rabbitmq' + repo: "deb https://dl.bintray.com/rabbitmq/debian {{ ansible_distribution_release }} main" + filename: rabbitmq state: present update_cache: yes @@ -53,6 +52,21 @@ name: rabbitmq-server state: latest +- name: Install RabbitMQ TLS dependencies + apt: + name: "{{ item }}" + state: latest + loop: + - erlang-asn1 + - erlang-crypto + - erlang-public-key + - erlang-ssl + +- name: Ensure TLS config + copy: + src: rabbitmq.conf + dest: /etc/rabbitmq/rabbitmq.conf + - name: Start RabbitMQ service service: name: rabbitmq-server |