The task is a standard task, it is a rather simple task (the acl_state is
rendered)

---
- name: The provided configuration will be "{{ acl_state }}"
  cisco.ios.ios_acls:
    config: "{{ acls }}"
    state: "{{ acl_state }}"

The cisco.ios.ios_acls module looked inviting to me but since the generated
configuration is not rendered correctly I reverted to the good old
straightforward config module to get the job done. However, I am still
curious why this cisco.ios.ios_acls module is not rendering the acl
correctly.

Op vr 5 apr 2024 om 13:57 schreef Todd Lewis <[email protected]>:

> > How can I fix this?
> You can start by showing us how you render them. What does your "Render
> the provided configuration" task look like?
>
> On 4/5/24 3:36 AM, L. Jankok wrote:
>
> When using the cisco.ios.ios_acls module I get the  remarks at the end of
> the standard access-list instead of between the ACL entries.
>
> When I render the following:
>
>
> acls:
>
> - afi: ipv4
>
>   acls:
>
>     - name: ACL-EXAMPLE
>
>       acl_type: standard
>
>       aces:
>
>         - sequence: 10
>
>           remarks:
>
>             - "First Remark before Sequence 10"
>
>           grant: permit
>
>           source:
>
>             address: 10.26.44.80
>
>         - sequence: 20
>
>           grant: permit
>
>           source:
>
>             address: 10.26.55.90
>
>         - sequence: 30
>
>           remarks:
>
>             - "Second Remark before Sequence 30"
>
>           grant: permit
>
>           source:
>
>             address: 10.30.44.12
>
>         - sequence: 40
>
>           grant: permit
>
>           source:
>
>             address: 10.30.55.13
>
>
> I get:
>
>
> TASK [acl-demo : Render the provided configuration]
> ******************************************************************************************************************************************************************************
>
> ok: [dummy] => {
>
>     "changed": false,
>
>     "rendered": [
>
>         "ip access-list standard ACL-EXAMPLE",
>
>         "10 permit 10.26.44.80",
>
>         "20 permit 10.26.55.90",
>
>         "30 permit 10.30.44.12",
>
>         "40 permit 10.30.55.13",
>
>         "remark First Remark before Sequence 10",
>
>         "remark Second Remark before Sequence 30"
>
>     ]
>
> }
>
>
> I expect the first remark to be before sequence 10 and the second remark
> to be before sequence 30.
>
>
> How can I fix this?
>
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CADFeZ2ucb3yWy6GAv3iqjiyJ_vb-E_UXsygQKUjnR_KC57BGdQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CADFeZ2ucb3yWy6GAv3iqjiyJ_vb-E_UXsygQKUjnR_KC57BGdQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/40782183-7c9c-44bf-9f83-6e3f466f1d6c%40gmail.com
> <https://groups.google.com/d/msgid/ansible-project/40782183-7c9c-44bf-9f83-6e3f466f1d6c%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CADFeZ2uBGEU9i%3D-a37LHg3fJ9GmgmUHo_jb%3DVGuTKouiEhPDBw%40mail.gmail.com.

Reply via email to