Add shippable tests. (#4)

This commit is contained in:
Felix Fontein
2020-03-24 20:03:33 +01:00
parent 70615300fb
commit e91849d1d8
37 changed files with 553 additions and 63 deletions

View File

@@ -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."))

View File

@@ -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