mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-08 06:13:03 +00:00
Add shippable tests. (#4)
This commit is contained in:
@@ -20,5 +20,3 @@
|
||||
- "default.yml"
|
||||
when:
|
||||
- has_httptester|bool
|
||||
# skip the setup if running on Windows Server 2008 as httptester is not available
|
||||
- ansible_os_family != 'Windows' or (ansible_os_family == 'Windows' and not ansible_distribution_version.startswith("6.0."))
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
- name: Windows - make sure the port forwarder is active
|
||||
ansible.windows.win_wait_for:
|
||||
host: ansible.http.tests
|
||||
port: 80
|
||||
state: started
|
||||
timeout: 300
|
||||
- name: Windows - Get client cert/key
|
||||
register: win_download
|
||||
retries: 5
|
||||
until: win_download is successful
|
||||
with_items:
|
||||
- client.pem
|
||||
- client.key
|
||||
ansible.windows.win_get_url:
|
||||
url: http://ansible.http.tests/{{ item }}
|
||||
dest: '{{ remote_tmp_dir }}\{{ item }}'
|
||||
- name: Windows - Retrieve test cacert
|
||||
ansible.windows.win_get_url:
|
||||
url: http://ansible.http.tests/cacert.pem
|
||||
dest: '{{ remote_tmp_dir }}\cacert.pem'
|
||||
- name: Windows - Update ca trust
|
||||
ansible.windows.win_certificate_store:
|
||||
path: '{{ remote_tmp_dir }}\cacert.pem'
|
||||
state: present
|
||||
store_location: LocalMachine
|
||||
store_name: Root
|
||||
Reference in New Issue
Block a user