community / community.network / 0.1.0 / module / ce_snmp_community Manages SNMP community configuration on HUAWEI CloudEngine switches. Authors: wangdezhuang (@QijunPan)community.network.ce_snmp_community (0.1.0) — module
Install with ansible-galaxy collection install community.network:==0.1.0
collections: - name: community.network version: 0.1.0
Manages SNMP community configuration on HUAWEI CloudEngine switches.
- name: CloudEngine snmp community test hosts: cloudengine connection: local gather_facts: no vars: cli: host: "{{ inventory_hostname }}" port: "{{ ansible_ssh_port }}" username: "{{ username }}" password: "{{ password }}" transport: cli tasks: - name: "Config SNMP community" ce_snmp_community: state: present community_name: Wdz123456789 access_right: write provider: "{{ cli }}" - name: "Undo SNMP community" ce_snmp_community: state: absent community_name: Wdz123456789 access_right: write provider: "{{ cli }}" - name: "Config SNMP group" ce_snmp_community: state: present group_name: wdz_group security_level: noAuthNoPriv acl_number: 2000 provider: "{{ cli }}" - name: "Undo SNMP group" ce_snmp_community: state: absent group_name: wdz_group security_level: noAuthNoPriv acl_number: 2000 provider: "{{ cli }}"
state: choices: - present - absent default: present description: - Manage the state of the resource. read_view: description: - Mib view name for read. acl_number: description: - Access control list number. group_name: description: - Unique name to identify the SNMPv3 group. write_view: description: - Mib view name for write. notify_view: description: - Mib view name for notification. access_right: choices: - read - write description: - Access right read or write. community_name: description: - Unique name to identify the community. security_level: choices: - noAuthNoPriv - authentication - privacy description: - Security level indicating whether to use authentication and encryption. community_mib_view: description: - Mib view name.
changed: description: check to see if a change was made on the device returned: always sample: true type: bool end_state: description: k/v pairs of aaa params after module execution returned: always sample: snmp v3 group: snmp_group: - wdz_group - noAuthNoPriv - '2000' type: dict existing: description: k/v pairs of existing aaa server returned: always sample: {} type: dict proposed: description: k/v pairs of parameters passed into module returned: always sample: acl_number: '2000' group_name: wdz_group security_level: noAuthNoPriv state: present type: dict updates: description: command sent to the device returned: always sample: - snmp-agent group v3 wdz_group noauthentication acl 2000 type: list