Debian Codegraph @

ansible_collections/community/zabbix/tests/integration/targets/test_zabbix_valuemap/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_valuemap 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 valuemap if tests failed"
17 community.zabbix.zabbix_valuemap:
18 host_name: ExampleHost
19 name: TestValuemap
20 state: absent
21 ignore_errors: true