aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/pydis-mtls/tasks/main.yml
blob: 70ea7b2fdea1c40b6a11d4b05f9ef2cc108e1464 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- name: Ensure directory to store mTLS CA in is created
  file:
    path: '{{ pydis_mtls_location | dirname }}'
    state: directory
    mode: '0755'
  tags:
    - role::pydis-mtls

- name: Copy mTLS Certificate Authority to host
  copy:
    content: '{{ pydis_mtls_certificate }}'
    dest: '{{ pydis_mtls_location }}'
    owner: root
    group: root
    mode: '0744'
  tags:
    - role::pydis-mtls