I'm trying to generate new RSA keys & Certificates on Cisco switches/routers using Ansible... The process should be as below. I'm aware of how to push commands from Ansible. But the problem with this RSA key generate command that it can take a long time to finish, and that further commands are dependent on this.
My problem is that i want to execute the first command. then wait to see ([OK]) in the output before proceeding with next commands. But i couldn't find a way to parse the output of the 1st command in any module i have seen. Any ideas?
router(config)# crypto key generate rsa label RSA-Key modulus 4096 The name for the keys will be: RSA-Key
% The key modulus size is 4096 bits % Generating 4096 bit RSA keys, keys will be non-exportable... [OK] (elapsed time was 100 seconds)
router(config)#crypto pki enroll Self-Signed-Certificate % Include the router serial number in the subject name? [yes/no]: no % Include an IP address in the subject name? [no]: no Generate Self Signed Router Certificate? [yes/no]: yes
Router Self Signed Certificate successfully created
Listen: https://smarturl.it/CCRS9E25 Follow us: twitter.com/ciscochampions
With applications and users everywhere, the networks are now, more than ever, being tasked with delivering consistent protection while providing an exceptional user exper...
Listen: https://smarturl.it/CCRS9E24 Follow us: https://twitter.com/CiscoChampion
Cisco Radio Aware Routing addresses several of the challenges faced when merging IP routing and radio communications in mobile networks, especially those exhibiti...
Listen: https://smarturl.it/CCRS9E23 Follow us: https://twitter.com/CiscoChampion The Wi-Fi 6E Catalyst 9136 access point takes advantage of the 6-GHz band to produce a network that is more reliable and secure, with higher throughput, more ...
When moving from OSPFv2 to OSPFv3, there are many changes in the format of the LSAs Type, but the most known changes are: IP prefix informations are no longer carried in Type-1 LSA and Type-2 LSA, new LSAs Type 8 and 9 are added to carry these prefixes.