ansible/test/integration/targets/setup_tls/tasks/main.yml
hyperized 64bacb0e02 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
2019-01-11 17:25:04 +00:00

21 lines
497 B
YAML

---
# Generated certificate with: https://github.com/michaelklishin/tls-gen
# ~/tls-gen/basic# make PASSWORD=bunnies CN=ansible.tls.tests
# verify with: make info
- name: ensure target directory is present
file:
path: /tls
state: directory
- name: ensure TLS files are present
copy:
src: "{{ item }}"
dest: "/tls/{{ item }}"
loop:
- ca_certificate.pem
- ca_key.pem
- client_certificate.pem
- client_key.pem
- server_certificate.pem
- server_key.pem