Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/setup_tls/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) Ansible Project
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 # Generated certificate with: https://github.com/michaelklishin/tls-gen
12 # ~/tls-gen/basic# make PASSWORD=bunnies CN=ansible.tls.tests
13 # verify with: make info
14
15 - name: ensure target directory is present
16 file:
17 path: /tls
18 state: directory
19
20 - name: ensure TLS files are present
21 copy:
22 src: "{{ item }}"
23 dest: "/tls/{{ item }}"
24 loop:
25 - ca_certificate.pem
26 - ca_key.pem
27 - client_certificate.pem
28 - client_key.pem
29 - server_certificate.pem
30 - server_key.pem