Debian Codegraph @

ansible_collections/microsoft/iis/tests/integration/targets/website/tasks/main.yml

raw symbols SCIP
1 ---
2 - name: run website integration tests
3 block:
4 - name: create website directory structure
5 ansible.windows.win_file:
6 path: "{{ item }}"
7 state: directory
8 loop:
9 - "{{ test_phisical_path }}"
10 - "{{ test_alt_phisical_path }}"
11
12 - name: create test application pool
13 microsoft.iis.web_app_pool:
14 name: "{{ test_apppool }}"
15 state: present
16
17 # Tests
18 - include_tasks: tests.yml
19 - include_tasks: bindings.yml
20
21 always:
22 # Cleanup
23 - name: remove test website
24 microsoft.iis.website:
25 name: "{{ test_website_name }}"
26 state: absent
27
28 - name: remove test application pool
29 microsoft.iis.web_app_pool:
30 name: "{{ test_apppool }}"
31 state: absent
32
33 - name: remove website directory structure
34 ansible.windows.win_file:
35 path: "{{ item }}"
36 state: absent
37 loop:
38 - "{{ test_phisical_path }}"
39 - "{{ test_alt_phisical_path }}"
40
41 - name: remove certs
42 raw: "remove-item cert:\\localmachine\\my\\{{ thumbprint1.stdout_lines[0] }} -force -ea silentlycontinue"
43 when: thumbprint1 is defined