Open Akasurde opened 1 year ago
cc @joeyxworks
Having this issue as well. Running ASAv code version 984-25 did not have this issue. Moved up to 9-14-3 and this issue started to occur. Seems related to ASA code version.
I finally got it around by changing ansible_enable_password
to ansible_become_password
in variable file. maybe you can give it a shot first, since some variables may have been deprecated or only worked in older version of Ansible, you can check the link here for reference. Thank you all in the problem resolving process!
Tried both sets of password vars and still not working. What ASA code version are you running this against @joeyxworks? Here is my full list of host vars. name: "FW" ansible_host: "{{ host }}" ansible_user: admin ansible_password: "{{ password }}" ansible_ssh_common_args: "-o KexAlgorithms=diffie-hellman-group1-sha1 -o StrictHostKeyChecking=no" ansible_become: true ansible_become_method: ansible.netcommon.enable ansible_become_password: "{{ password }}" ansible_connection: ansible.netcommon.network_cli ansible_network_os: cisco.asa.asa ansible_python_interpreter: python
Summary
Hi folks,
I encountered an issue that relates to Cisco ASA firewall, I was told that command timeout triggered when run ansible-playbook command, here the environment info
I will see the timeout error message when I choose libssh as my SSH connection module:
There will be another error message when I choose paramiko:
The key problem here I think is it failed to enter
Enable
mode when connecting, because the same playbook I tried withansible_become: false
can be working properly.Please find the configuration below:
Issue Type
Bug Report
Component Name
netcommon, cisco.asa
Ansible Version
Configuration
OS / Environment
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS" PRETTY_NAME="Ubuntu 22.04.2 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.2 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy
Steps to Reproduce
Expected Results
Output with correct information of the device
Actual Results
Code of Conduct