Debian Codegraph @

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

raw
1 ---
2 - name: test - do not run tests for Zabbix < 7.0
3 meta: end_play
4 when: zabbix_version is version('7.0', '<')
5
6 - block:
7 # setup stuff
8 - include_tasks: zabbix_setup.yml
9
10 # zabbix_item module tests
11 - include_tasks: zabbix_tests.yml
12
13 # tear down stuff set up earlier
14 - include_tasks: zabbix_teardown.yml
15 always:
16 - name: "cleanup host item if tests failed"
17 community.zabbix.zabbix_item:
18 host_name: ExampleHost
19 name: TestItem
20 state: absent
21 ignore_errors: true
22
23 - name: "cleanup template item if tests failed"
24 community.zabbix.zabbix_item:
25 template_name: ExampleTemplate
26 name: TestItem
27 state: absent
28 ignore_errors: true