cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
861
Views
0
Helpful
3
Replies

Ansible ACI how to configure L4-L7 services

adolfo.cadillo
Level 1
Level 1

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 

3 Replies 3

Marcel Zehnder
Spotlight
Spotlight

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

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

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