mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Initial commit
This commit is contained in:
21
tests/integration/targets/setup_tls/tasks/main.yml
Normal file
21
tests/integration/targets/setup_tls/tasks/main.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
# 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
|
||||
Reference in New Issue
Block a user