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

Unsupported parameters for (cisco.asa.asa_command) module: context, passwords found in provider.

Hello,

 

I am trying to send a 'show version' command to my Cisco ASA using Ansible, but I am encountering the following errors and I don't know why. The same thing works for my Cisco router though. Below are some details that might be helpful.

 

Cisco Asa version -> 9.12(2)9

Ansible version -> 2.9.13 

Python version -> 2.7.17

 

Ansible hosts:

#This is a group of remote servers with GUI
[gui]
ubuntu ansible_user=admin

#These are global variables for the group Cisco
[cisco:vars]
ansible_connection=local
ansible_network_os=ios

#This is a group of remote servers for Cisco devices
[cisco]
cisco_router ansible_user=admin

[firewall:vars]
ansible_connection=local

[firewall]
cisco_asa ansible_user=admin

 

Asa playbook:

name"Connecting to Cisco ASA"
  hostsfirewall
  gather_factsno
  tasks:
    - namerun show version on remote devices
      cisco.asa.asa_command:
        commands:
          - show version

 

Error encoutering:

fatal: [cisco_asa]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "msg": "Unsupported parameters for (cisco.asa.asa_command) module: context, passwords found in provider. Supported parameters include: auth_pass, authorize, host, password, port, ssh_keyfile, timeout, username"}

 

Full error with -vvv:

 

fatal: [cisco_asa]: FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"invocation": {
"module_args": {
"authorize": null,
"commands": [
"show version"
],
"context": null,
"interval": 1,
"match": "all",
"passwords": null,
"provider": {
"auth_pass": null,
"authorize": false,
"context": null,
"host": null,
"password": null,
"passwords": null,
"port": null,
"ssh_keyfile": null,
"timeout": null,
"username": null
},
"retries": 10,
"wait_for": null
}
},
"msg": "Unsupported parameters for (cisco.asa.asa_command) module: context, passwords found in provider. Supported parameters include: auth_pass, authorize, host, password, port, ssh_keyfile, timeout, username"
}

 

 

Can someone please help ?

 

 

0 REPLIES 0
Content for Community-Ad
Cisco Community October 2020 Spotlight Award Winners
This widget could not be displayed.