Fix a path.

This commit is contained in:
Andrea Dell'Amico 2020-12-08 19:30:40 +01:00
parent 85f5f21103
commit 3989706fc2
1 changed files with 4 additions and 4 deletions

View File

@ -34,12 +34,12 @@
- name: Ensure that ca-certificates is installed - name: Ensure that ca-certificates is installed
apt: pkg=ca-certificates state=present cache_valid_time=1800 apt: pkg=ca-certificates state=present cache_valid_time=1800
- name: Get the CA files that we want to trust - name: Get the CA files that we want to trust on deb
get_url: url={{ item.ca_url }} dest=/etc/ssl/certs/{{ item.ca }} owner=root group=root mode='0444' get_url: url={{ item.ca_url }} dest=/etc/ssl/certs/{{ item.ca }} owner=root group=root mode='0444'
with_items: '{{ trusted_ca_additional_ca_files }}' with_items: '{{ trusted_ca_additional_ca_files }}'
register: ca_files_installation register: ca_files_installation
- name: Trust the CA files - name: Trust the CA files on deb
command: /usr/sbin/update-ca-certificates command: /usr/sbin/update-ca-certificates
when: ca_files_installation is changed when: ca_files_installation is changed
@ -49,11 +49,11 @@
- name: Manage the Letsencrypt CA files on deb - name: Manage the Letsencrypt CA files on deb
block: block:
- name: Copy the letsencrypt CA files on deb - name: Copy the letsencrypt CA files on deb
copy: src=letsencrypt_ca_files/{{ item.ca }} dest=/etc/pki/ca-trust/source/anchors/{{ item.ca }} owner=root group=root mode='0444' copy: src=letsencrypt_ca_files/{{ item.ca }} dest=/etc/ssl/certs/{{ item.ca }} owner=root group=root mode='0444'
with_items: '{{ trusted_ca_letsencrypt_ca_files }}' with_items: '{{ trusted_ca_letsencrypt_ca_files }}'
register: letsencrypt_ca_files_installation register: letsencrypt_ca_files_installation
- name: Trust the CA files on EL - name: Trust the CA files on deb
command: /usr/sbin/update-ca-certificates command: /usr/sbin/update-ca-certificates
when: letsencrypt_ca_files_installation is changed when: letsencrypt_ca_files_installation is changed