cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
169
Views
0
Helpful
1
Replies

Cisco FTD -Ansible playbook could not determine the API token path

Temur Kalandia
Level 1
Level 1

Hello , 

i am tryingto download configuration from Cisco FTD with ansible with  ftd_file_download module. i am getting following error: ansible.module_utils.connection.ConnectionError: Ansible could not determine the API token path automatically. Please, specify the `ansible_httpapi_ftd_token_path` variable in the inventory file. 

but i have already specified it in invetory file : ansible_httpapi_ftd_token_path=/api/fdm/latest/fdm/token 

can please advice how to resolve this issue ?

1 Reply 1

Temur Kalandia
Level 1
Level 1

i solvedit , inventory file should look like this: 

[ftd]
myftd ansible_host=<ftd IP>


[ftd:vars]
ansible_httpapi_port=443
ansible_network_os=ftd
ansible_user=admin
ansible_password=temppass
ansible_httpapi_use_ssl=True
ansible_httpapi_validate_certs=False
ansible_httpapi_ftd_token_path=/api/fdm/latest/fdm/token