02-21-2024 01:55 AM
I'm encountering an issue when using the ftd_configuration module in Ansible to configure network objects on Cisco FTD devices. Despite following the documentation and using parameters that seem correct, I receive an error indicating 'Invalid data provided': "'type'". I'm trying to add a network object with specific details. I'm using Ansible version 2.14.6, Python 3.10.6, and the latest version of the community.network collection. Could anyone guide me on what might be wrong with my parameters or how to resolve this issue?
02-21-2024 05:48 AM
Hi,
Please provide the parameters you are passing to Ansible aswell as the full output from the error (If any sensitive information is in the output such as public IPs or usernames, remove these before posting here.)
Also, what version FTD are you running and are you trying to add network objects to FMC og FTD managed by FDM?
03-22-2024 07:35 AM
Hi,
Share the playbook if possible
this is an example of the playbook you can use for this module:
- name: Create a network object community.network.ftd_configuration: operation: "addNetworkObject" data: name: "Ansible-network-host" description: "From Ansible with love" subType: "HOST" value: "192.168.2.0" dnsResolution: "IPV4_AND_IPV6" type: "networkobject" isSystemDefined: false register_as: "hostNetwork" - name: Delete the network object community.network.ftd_configuration: operation: "deleteNetworkObject" path_params: objId: "{{ hostNetwork['id'] }}"
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