Debian Codegraph @

ansible_collections/community/zabbix/tests/integration/targets/test_zabbix_discoveryrule/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_discoveryrule module tests
11 - include_tasks: zabbix_tests.yml
12
13 # tear down stuff set up earlier
14 - include_tasks: zabbix_teardown.yml
15
16 always:
17 - name: "cleanup discoveryrule if tests failed"
18 community.zabbix.zabbix_discoveryrule:
19 host_name: ExampleHost
20 name: ExampleRule
21 state: absent
22 ignore_errors: true
23
24 - name: "cleanup discoveryrule if tests failed"
25 community.zabbix.zabbix_discoveryrule:
26 template_name: ExampleTemplate
27 name: ExampleRule
28 state: absent
29 ignore_errors: true