xoxys.cacerts/tasks/cacerts.yml
Robert Kaussow b1c83861df
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/notify Pipeline was successful
ci: migrate to woodpecker
2024-02-18 20:12:31 +01:00

29 lines
754 B
YAML

---
- name: Install required packages
ansible.builtin.package:
name: "{{ item }}"
state: present
loop: "{{ cacerts_packages_extra + cacerts_packages }}"
- name: Ensure ca path at '{{ __cacerts_ca_trust_source }}' exists
ansible.builtin.file:
path: "{{ __cacerts_ca_trust_source }}"
state: directory
mode: "0755"
- name: Install custom ca certs
ansible.builtin.copy:
src: "{{ item.path }}"
dest: "{{ __cacerts_ca_trust_source }}/{{ item.name }}"
owner: root
group: root
mode: "0640"
register: __ca_add
loop: "{{ cacerts_ca_certs }}"
loop_control:
label: "{{ item.name }}"
- name: Update cert index
ansible.builtin.command: "{{ __cacerts_ca_update_command }}"
changed_when: __ca_add.changed