community / community.network / 5.0.2 / module / pn_access_list CLI command to create/delete access-list Authors: Pluribus Networks (@amitsi)community.network.pn_access_list (5.0.2) — module
Install with ansible-galaxy collection install community.network:==5.0.2
collections: - name: community.network version: 5.0.2
This module can be used to create and delete an access list.
- name: Access list functionality community.network.pn_access_list: pn_cliswitch: "sw01" pn_name: "foo" pn_scope: "local" state: "present"
- name: Access list functionality community.network.pn_access_list: pn_cliswitch: "sw01" pn_name: "foo" pn_scope: "local" state: "absent"
- name: Access list functionality community.network.pn_access_list: pn_cliswitch: "sw01" pn_name: "foo" pn_scope: "fabric" state: "present"
state: choices: - present - absent description: - State the action to perform. Use 'present' to create access-list and 'absent' to delete access-list. required: true pn_name: description: - Access List Name. required: false type: str pn_scope: choices: - local - fabric description: - scope. Available valid values - local or fabric. required: false pn_cliswitch: description: - Target switch to run the CLI on. required: false type: str
changed: description: indicates whether the CLI caused changes on the target. returned: always type: bool command: description: the CLI command run on the target node. returned: always type: str stderr: description: set of error responses from the access-list command. returned: on error type: list stdout: description: set of responses from the access-list command. returned: always type: list