Debian Codegraph @

ansible_collections/community/windows/tests/integration/targets/win_snmp/tasks/output_only.yml

raw
1 ---
2 # Already tested
3 - name: Add an SNMP manager and an SNMP community
4 win_snmp:
5 action: add
6 community_strings:
7 - snmp-cleanup
8 permitted_managers:
9 - 192.168.1.1
10
11 - name: Run without options
12 register: snmp_no_options
13 win_snmp:
14
15 - name: Assert no changes occurred when no options provided
16 assert:
17 that:
18 - not snmp_no_options.changed
19
20 - name: Assert community strings and permitted managers are correctly returned
21 assert:
22 that:
23 - "'snmp-cleanup' in snmp_no_options.community_strings"
24 - "'192.168.1.1' in snmp_no_options.permitted_managers"