7c60dadb9a
* Start of alpine testing * More updates * Add forgotten file * remove debug * Add alpine3 * equal * group 4 * group 4 * group 5 * Try to decrease test length * libuser only available in testing * Remove debug * Make loops target work on hosts without gnu date * Enable alpine testing * ci_complete * Don't specify uid for creating test user * ci_complete * Re-sort docker completion * use newer container image * ci_complete * fix indentation Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Matt Clay <matt@mystile.com>
59 lines
1.8 KiB
YAML
59 lines
1.8 KiB
YAML
- name: RedHat - Enable the dynamic CA configuration feature
|
|
command: update-ca-trust force-enable
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
- name: RedHat - Retrieve test cacert
|
|
get_url:
|
|
url: "http://ansible.http.tests/cacert.pem"
|
|
dest: "/etc/pki/ca-trust/source/anchors/ansible.pem"
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
- name: Get client cert/key
|
|
get_url:
|
|
url: "http://ansible.http.tests/{{ item }}"
|
|
dest: "{{ remote_tmp_dir }}/{{ item }}"
|
|
with_items:
|
|
- client.pem
|
|
- client.key
|
|
|
|
- name: Suse - Retrieve test cacert
|
|
get_url:
|
|
url: "http://ansible.http.tests/cacert.pem"
|
|
dest: "/etc/pki/trust/anchors/ansible.pem"
|
|
when: ansible_os_family == 'Suse'
|
|
|
|
- name: Debian/Alpine - Retrieve test cacert
|
|
get_url:
|
|
url: "http://ansible.http.tests/cacert.pem"
|
|
dest: "/usr/local/share/ca-certificates/ansible.crt"
|
|
when: ansible_os_family in ['Debian', 'Alpine']
|
|
|
|
- name: Redhat - Update ca trust
|
|
command: update-ca-trust extract
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
- name: Debian/Alpine/Suse - Update ca certificates
|
|
command: update-ca-certificates
|
|
when: ansible_os_family in ['Debian', 'Alpine', 'Suse']
|
|
|
|
- name: FreeBSD - Retrieve test cacert
|
|
get_url:
|
|
url: "http://ansible.http.tests/cacert.pem"
|
|
dest: "/tmp/ansible.pem"
|
|
when: ansible_os_family == 'FreeBSD'
|
|
|
|
- name: FreeBSD - Add cacert to root certificate store
|
|
blockinfile:
|
|
path: "/etc/ssl/cert.pem"
|
|
block: "{{ lookup('file', '/tmp/ansible.pem') }}"
|
|
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'
|
|
|
|
- name: MacOS - Update ca certificates
|
|
command: /usr/local/opt/openssl/bin/c_rehash
|
|
when: ansible_os_family == 'Darwin'
|