summaryrefslogtreecommitdiffstats
path: root/ansible/roles/certificates/tasks/upload_root_ca.yml
blob: b2f1f94570945101d8cd40790ad575771373908f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---
- name: Copy root certificate
  copy:
    src: "{{ certificates_local_dir }}/rootCA.crt"
    dest: /etc/pki/ca-trust/source/anchors/
  register: copycert
  notify: Restart Docker

- name: Extract root certificate
  command: /usr/bin/update-ca-trust extract
  when: copycert.changed
  notify: Restart Docker