Error changed": false, "module_stderr on NX-OS

33 views
Skip to first unread message

Sumanthchoudary Nalluri

unread,
Jan 30, 2024, 1:48:16 PM1/30/24
to Ansible Project
I'm attempting to set up the ACL on my Nexus device, but I've encountered an error during playbook execution. Could someone please provide assistance? Here's the error message.

FAILED! => {"changed": false, "module_stderr": "10 permit\r\r\n                                 ^\r\n% Incomplete command at '^' marker.\r\n\r 02(config-acl)# ", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error"}

This is my Yaml file 
- name: Configure ACLs on Cisco Nexus
  hosts: nexus_switches
  gather_facts: false

  tasks:
    - name: Merge ACL configuration
      cisco.nxos.nxos_acls:
        state: merged
        config:
          - afi: ipv4
            acls:
              - name: acl
                aces:
                  - sequence: 10
                    grant: permit
                    source:
                      address: 192.168.129.70
                      wildcard_bits: 0.0.0.0
                  - sequence: 20
                    grant: permit
                    source:
                      address: 192.168.129.80
                      wildcard_bits: 0.0.0.0
                  - sequence: 500
                    grant: deny
                    source:
                      address: 0.0.0.0
                      wildcard_bits: 255.255.255.255
                    destination:
                      address: 0.0.0.0
                      wildcard_bits: 255.255.255.255



Todd Lewis

unread,
Jan 30, 2024, 3:38:59 PM1/30/24
to ansible...@googlegroups.com, uto...@gmail.com
You're telling it to permit, but not what to permit.
I believe at least a protocol is required for permit, though you wouldn't guess that from the docs. None of their permit examples omit protocol though.
--
Todd
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/63de6d53-18c6-4dcf-ba52-05f154f6ae02n%40googlegroups.com.

-- 
Todd
Reply all
Reply to author
Forward
0 new messages