summaryrefslogtreecommitdiff
path: root/test/integration/targets/setup_tls/tasks/main.yml
blob: c5b7a23a22847c908c4c9a87a20d754ee02a62d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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