community.windows.win_snmp – Configures the Windows SNMP service
This plugin is part of the community.windows collection (version 1.9.0).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install community.windows.
To use it in a playbook, specify:
- name: Replace SNMP communities and managers community.windows.win_snmp: community_strings: - public permitted_managers: - 192.168.1.2 action: set - name: Replace SNMP communities and clear managers community.windows.win_snmp: community_strings: - public permitted_managers:  action: set
Common return values are documented here, the following are the fields unique to this module: