cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
265
Views
0
Helpful
2
Replies

FTD Ansible Module Error

mtejerob
Level 1
Level 1

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? 

2 Replies 2

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?

--
Please remember to select a correct answer and rate helpful posts

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'] }}"