mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 13:22:58 +00:00
Update prepare_http_tests as in https://github.com/ansible/ansible/pull/71841/files.
This commit is contained in:
@@ -49,11 +49,16 @@
|
||||
when: ansible_os_family == 'FreeBSD'
|
||||
|
||||
- name: MacOS - Retrieve test cacert
|
||||
get_url:
|
||||
url: "http://ansible.http.tests/cacert.pem"
|
||||
dest: "/usr/local/etc/openssl/certs/ansible.pem"
|
||||
when: ansible_os_family == 'Darwin'
|
||||
block:
|
||||
- uri:
|
||||
url: "http://ansible.http.tests/cacert.pem"
|
||||
return_content: true
|
||||
register: cacert_pem
|
||||
|
||||
- name: MacOS - Update ca certificates
|
||||
command: /usr/local/opt/openssl/bin/c_rehash
|
||||
when: ansible_os_family == 'Darwin'
|
||||
- raw: '{{ ansible_python_interpreter }} -c "import ssl; print(ssl.get_default_verify_paths().cafile)"'
|
||||
register: macos_cafile
|
||||
|
||||
- blockinfile:
|
||||
path: "{{ macos_cafile.stdout_lines|first }}"
|
||||
block: "{{ cacert_pem.content }}"
|
||||
|
||||
Reference in New Issue
Block a user