cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
115
Views
0
Helpful
0
Replies
Highlighted

FTD Ansible Module

Hello, 

I am trying to update an StoS Connection profile using the FTD Ansible modules.  I can't seem to get past the first post.  When running the operation, I continually get the erorr: 

 

fatal: [ftd]: FAILED! => {"changed": false, "msg": {"Invalid data provided": "'type'"}}

In my playbook I am retrieving the VPN settings in a task and saving the result as "stosprofile" which I then use to fill out all of the mandatory fields per the documentation: https://developer.cisco.com/site/ftd-ansible/#!editstosconnectionprofile/ 

 

 - name: edit outside stos vpn
      ftd_configuration:
        operation: editSToSConnectionProfile
        data:
          name: Name_Updated_2
          ikev1AuthMethod: "{{ stosprofile.ikev1AuthMethod }}"
          ikev2AuthMethod: "{{ stosprofile.ikev2AuthMethod }}"
          ikev1Enabled: "{{ stosprofile.ikev1Enabled }}"
          ikev2Enabled: "{{ stosprofile.ikev2Enabled }}"
          rriEnabled: "{{ stosprofile.rriEnabled }}"
          dynamicRRIEnabled: "{{ stosprofile.dynamicRRIEnabled }}"
          ipsecLifetimeInSeconds: "{{ stosprofile.ipsecLifetimeInSeconds }}"
          ipsecLifetimeInKiloBytes: "{{ stosprofile.ipsecLifetimeInKiloBytes }}"
          ipsecLifetimeUnlimited: "{{ stosprofile.ipsecLifetimeUnlimited }}"
          type: "stosconnectionprofile"
          outsideInterfaces: "{{ stosprofile.outsideInterfaces }}"
          id: "{{ stosprofile.id }}"
        path_params:
          objId: <objid>

When I run the operation with `check_mode: yes` I get a successful completion

 

What am I missing here?

 

0 REPLIES 0
This widget could not be displayed.