Files
ansible-repo/playbooks/pmc314-ca.yml
hogweed1 86b35b7f5c
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 13m11s
now we goin to set-up root-ca
2026-05-15 19:49:33 +10:00

19 lines
700 B
YAML

---
- name: Install root CA certificate on Debian nodes
hosts: all
become: true
tasks:
- name: Copy root CA certificate to trust store
ansible.builtin.get_url:
url: https://root-ca.guaranteedstruggle.host:443/roots.pem
dest: /usr/local/share/ca-certificates/pmc314_root-ca.crt
owner: root
group: root
mode: '0644'
# Игнорируем ошибку недоверенного SSL при первом подключении
validate_certs: false
register: ca_cert_downloaded
- name: Update CA certificates certificates store
ansible.builtin.command: update-ca-certificates
when: ca_cert_downloaded.changed