Debian Codegraph @

ansible_collections/community/zabbix/tests/integration/targets/test_zabbix_host/tasks/main.yml

raw
1 ---
2 - block:
3 # setup stuff not testing zabbix_host
4 - include_tasks: zabbix_host_setup.yml
5
6 # zabbix_host module tests
7 - include_tasks: zabbix_host_tests.yml
8
9 # documentation example tests
10 - include_tasks: zabbix_host_doc.yml
11
12 # tear down stuff set up earlier
13 - include_tasks: zabbix_host_teardown.yml
14 always:
15 - name: "cleanup if tests failed"
16 community.zabbix.zabbix_host:
17 host_name: "{{ item }}"
18 state: absent
19 ignore_errors: true
20 with_items:
21 - ExampleHost
22 - ExampleHost1
23 - ExampleHost2
24
25 - name: "clean up Zabbix Proxy Group if tests failed"
26 community.zabbix.zabbix_proxy_group:
27 name: TestProxyGroup
28 state: absent
29 when: zabbix_version is version('7.0', '>=')