Cisco Automation using Ansible Playbook Part3: Create Inventory group for SSH Key authentication


    โญ๏ธ๐๐ฅ๐š๐ฒ๐ฅ๐ข๐ฌ๐ญ: ๐€๐ง๐ฌ๐ข๐›๐ฅ๐ž ๐๐ž๐ญ๐ฐ๐จ๐ซ๐ค ๐€๐ฎ๐ญ๐จ๐ฆ๐š๐ญ๐ข๐จ๐ง ๐‚๐จ๐ฆ๐ฉ๐ฅ๐ž๐ญ๐ž ๐•๐ข๐๐ž๐จ๐ฌ:

    โญ๏ธ๐—ฃ๐—น๐—ฎ๐˜†๐—น๐—ถ๐˜€๐˜:๐—ฃ๐˜†๐˜๐—ต๐—ผ๐—ป ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐—ณ๐—ผ๐—ฟ ๐—ก๐—ฒ๐˜๐˜„๐—ผ๐—ฟ๐—ธ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐˜€

    This video demonstrates how to use Cisco enable password in Ansible inventory file or ansible playbook yaml file
    How to filter the output from cisco ios ansible facts
    Explanation of ansible module debug and how to use var in debug and msg
    How to filter key value pairs in ansible playbook
    How to register a variable and reuse it
    How to print facts output from ansible playbook ios facts
    Cisco enable password example ansible playbook
    ansible cisco become method enable and become password
    How to get subset of hardware and interfaces
    IP address details from ansible facts
    Cisco ios commands module turotial
    example playbook for executing show commands in cisco IOS
    cisco show running config output example using ansible playbook
    cisco ios facts and ios commands tutorial
    cisco ansible playbook for beginners
    filterhost name from ansible facts
    ansible become yes
    ansible become method enable example
    ansible become pass example
    ansible cisco basics
    ansible cisco become
    ansible cisco become enable
    ansible cisco beginner
    ansible cisco book
    ansible cisco cdp neighbor
    ansible cisco change hostname
    ansible cisco collection
    ansible cisco command output to file
    ansible cisco commands
    ansible cisco demo
    ansible cisco devices
    ansible cisco documentation
    ansible cisco enable command
    ansible cisco enable mode
    ansible cisco enable password
    ansible cisco error reading ssh protocol banner
    ansible cisco get interface configuration
    ansible cisco get serial number
    ansible cisco get version
    ansible cisco getting started
    ansible cisco guide
    ansible cisco host file
    ansible cisco hostname
    ansible cisco hosts
    ansible cisco inventory
    ansible cisco inventory example


    Previous articleUsing Ansible "Pull" Mode to Dynamically Automate Server/Workstation Builds
    Next articleAnsible Windows 10 – Tutorial to install prerequisites


    1. Hi, I have tried using ssh key authentication as shown in your video, however I am getting error below. I can ssh to cisco device (GNS3 IOU Switch) with key directly from Linux terminal but when I tried to run with script, it throws error as below.

      I have tried mentioning path for private key and username in host file as below. but still getting error message



      TASK [Gathering Facts] ***************************************************************************************************************************************

      [WARNING]: Ignoring timeout(10) for ansible.legacy.ios_facts

      fatal: [S2]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.ios_facts": {"failed": true, "invocation": {"module_args": {"available_network_resources": false, "gather_network_resources": null, "gather_subset": ["!config"], "provider": null}}, "msg": "No existing session"}}, "msg": "The following modules failed to execute: ansible.legacy.ios_factsn"}