ansible / community

This repository is being archived. See https://github.com/ansible-community/presentations and https://github.com/ansible-community/meetings for the new locations
Apache License 2.0
489 stars 144 forks source link

Replacing RSA Keys on ASA #622

Closed chuckjamm2001 closed 3 years ago

chuckjamm2001 commented 3 years ago

I apologize if this is the wrong place to post this. I'm new to ansible and so I'm looking for help on how to perform a configuration task on a ASA using Ansible.

Below is my playbook:

This file is used to create RSA Keys and learn how to configure the yaml file to act when the ASA prompts the admin for a response.

without some type of parameterto permit the admin's input, the play will fail with a timeout message

ciscoasa# config t

ciscoasa(config)# crypto key generate rsa modulus 4096

WARNING: You have a RSA keypair already defined named .

Do you really want to replace them? [yes/no]: yes

Keypair generation process begin. Please wait...

ciscoasa(config)


Line 0 creates a brand new RSA key while Line 1 is meant to replace the key. The above comments show how the command would work along with the prompt you have to answer. My first attempt resulted in my playbook timing out. All my remaining attempts was trying to use any method I could find to answer the prompt that I know the ASA is asking. All of my attempts resulted in a 'Unsupported parameter method'. Right now, I believe that I'm simply using the wrong module for the command that I want to run. Anyone ever tried the above and was successful?

felixfontein commented 3 years ago

Please read the contents of the "New Issue" template:


This repository is for management of all Ansible community related initiatives, such as meetings.

Ansible Support


Your issue looks like a request for support, so please check out IRC and mailing list specified above. Thanks.