Debian Codegraph @

test/integration/targets/prepare_http_tests/tasks/windows.yml

raw
1 # Server 2008 R2 uses a 3rd party program to forward the ports and it may
2 # not be ready straight away, we give it at least 5 minutes before
3 # conceding defeat
4 - name: Windows - make sure the port forwarder is active
5 win_wait_for:
6 host: ansible.http.tests
7 port: 80
8 state: started
9 timeout: 300
10
11 - name: Windows - Get client cert/key
12 win_get_url:
13 url: http://ansible.http.tests/{{ item }}
14 dest: '{{ remote_tmp_dir }}\{{ item }}'
15 register: win_download
16 # Server 2008 R2 is slightly slower, we attempt 5 retries
17 retries: 5
18 until: win_download is successful
19 with_items:
20 - client.pem
21 - client.key
22
23 - name: Windows - Retrieve test cacert
24 win_get_url:
25 url: http://ansible.http.tests/cacert.pem
26 dest: '{{ remote_tmp_dir }}\cacert.pem'
27
28 - name: Windows - Update ca trust
29 win_certificate_store:
30 path: '{{ remote_tmp_dir }}\cacert.pem'
31 state: present
32 store_location: LocalMachine
33 store_name: Root