Is it possible to create a for loop in a task? I have a switch Access-Control list I need to build. In my host_vars file I have a YAML object that contains all the source and destination addresses in an array. This way I can also control the sequence number without having to explicitly document an index number. In Galaxy the OEM has a ACL module I can reference but it looks like I would need to breakdown all the items in the array within the task.yml file. Is there a simpler way were I can call an for loop in the task to loop through all the LINE's I have in my variable file?
This would then allow me to generate the dellos_system seqlist without having to explicitly set every ACL entry. I have a very large set of ACL's to build and using the Galaxy example would be very inefficient, and cause lots of maintenance if I needed to change my ACL setup or modify it in the future. I'm looking for a more modular way to do this.
Galaxy module: https://galaxy.ansible.com/Dell-Networking/dellos-acl/
Here's an example of a very small ACL.