mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
64bacb0e02
* 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
21 lines
497 B
YAML
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
|