now we goin to set-up root-ca
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
hogweed1
2026-05-15 19:35:08 +10:00
parent c48280deea
commit 1025809015
6 changed files with 124 additions and 2 deletions

19
playbooks/pmc314-ca.yml Normal file
View File

@@ -0,0 +1,19 @@
---
- 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: http://example.lan
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