ansible / ansible.builtin / v2.6.0 / module / nxos_acl_interface Manages applying ACLs to interfaces. | "added in version" 2.2 of ansible.builtin" Authors: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele) preview | supported by networkansible.builtin.nxos_acl_interface (v2.6.0) — module
pip
Install with pip install ansible==2.6.0
Manages applying ACLs to interfaces.
- name: apply egress acl to ethernet1/41 nxos_acl_interface: name: ANSIBLE interface: ethernet1/41 direction: egress state: present
name: description: - Case sensitive name of the access list (ACL). required: true state: choices: - present - absent default: present description: - Specify desired state of the resource. required: false direction: choices: - ingress - egress description: - Direction ACL to be applied in on the interface. required: true interface: description: - Full name of interface, e.g. I(Ethernet1/1). required: true
acl_applied_to: description: list of interfaces the ACL is applied to returned: always sample: - acl_type: Router ACL direction: egress interface: Ethernet1/41 name: ANSIBLE type: list commands: description: commands sent to the device returned: always sample: - interface ethernet1/41 - ip access-group ANSIBLE out type: list