summaryrefslogtreecommitdiff
path: root/roles/ca/tasks/main.yml
blob: 26496867645381336d9622fdf645d565025bbda0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---

- name: get root CA certificate
  command: >
    curl -k -X GET -H "Content-Type:application/json" \
      "https://{{ step_bootstrap_ca_url }}:{{ step_ca_port }}/root/{{ step_bootstrap_fingerprint }}"
  register: root_ca_fp

- name: copy to os certificates
  template:
    src: "../templates/crt.j2"
    dest: "/usr/local/share/ca-certificates/{{ step_bootstrap_ca_url }}.crt"

- name: update trusted certs
  command: "update-ca-certificates"