10-09-2024 10:54 AM
Hi everyone. I’m just curious if anyone has tried using ansible with the FTD7.6 managed by FMC 7.6 virtual appliances.I am trying to test out some ansible playbook and python script to create an HA pair but getting different kind of errors.
referenced 7.4 so I am just wondering if the 7.6 APIs are not supported by the ansible modules yet. Any thoughts?
10-14-2024 02:26 AM
What errors are you getting?
I would guess that your assumption is correct, that the APIs for 7.6 are not present in ansible right now.
10-14-2024 01:55 PM
Hi Marius, The error below keeps occurring despite tweaks to the playbook. I have attached the entire playbook as well
#PLAY [Configure FTD HA Pair] **************************************************************************************************************************************************************************************
TASK [Get Domain UUID] ********************************************************************************************************************************************************************************************
ok: [172.19.0.3]
TASK [Get Device Group] *******************************************************************************************************************************************************************************************
fatal: [172.19.0.3]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'uuid'\n\nThe error appears to be in '/etc/ansible/playbooks/FTD-HA': line 17, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Get Device Group\n ^ here\n"}
PLAY RECAP ********************************************************************************************************************************************************************************************************
172.19.0.3 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 #
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