06-15-2022 02:20 PM
I am using ansible and chugging along but now stopped because I cannot find the ansible aci module to configure L4-L7 services. I need this for PBR and I have been scouring the internet for examples. Can anyone help me?
Adolfo
06-15-2022 10:37 PM
Hi Adolfo
There's a pull request open for almost one year: https://github.com/CiscoDevNet/ansible-aci/pull/186
However you may manually install the collection from the authors repo in order to use the L4-L7 modules. It's available here: https://github.com/timcragg/ansible-aci/tree/feat/aci_l4l7
An other possibility is using the rest module: https://docs.ansible.com/ansible/latest/collections/cisco/aci/aci_rest_module.html
HTH
Marcel
06-17-2022 06:59 AM
Thank you for your assistance Marcel and those links. I am starting my journey on ACI automation and all going well so far but stuck in L4-L7 applying templates part of my automation. Can't really find an ansible ACI module that will automate that part which I do with the gui. I looked at the github but I did not find what I am looking for or maybe it's there and I am not looking hard enough. Any examples on those links on what I am looking for? Please let me know and thank you.
Adolfo
06-21-2022 12:02 AM
Hi Adolfo
The L4-L7 modules are not merged in the official repo, but you can install (upgrade) the Ansible ACI collection from Tim's repo (the guy who did the pull request):
First you need to clone Tims repo:
git clone https://github.com/timcragg/ansible-aci.git
Then you can go to the directory, change the branch and build + install the collection from source:
cd ansible-aci
git checkout feat/aci_l4l7
ansible-galaxy collection build --force
ansible-galaxy collection install cisco-aci-* --force
Do get the docs you can do
ansible-doc <module-name>
The module name you'll find with this command
ansible-doc cisco.aci.aci_l4l7 -l
HTH
Marcel
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide