xoxys.cacerts/tasks/cacerts.yml
Robert Kaussow 1bd1f405d7
All checks were successful
continuous-integration/drone/push Build is passing
fix: solve linting issues
2021-02-06 15:11:48 +01:00

32 lines
826 B
YAML

---
- block:
- name: Install required packages
package:
name: "{{ item }}"
state: present
loop: "{{ cacerts_packages_extra + cacerts_packages }}"
- name: Ensure ca path at '{{ __cacerts_ca_trust_source }}' exists
file:
path: "{{ __cacerts_ca_trust_source }}"
state: directory
mode: 0755
- name: Install custom ca certs
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
command: "{{ __cacerts_ca_update_command }}"
changed_when: __ca_add.changed
become: True
become_user: root