# RADKIT Genie Parsed Command Example## This example shows how an example playbook of how you can execute a command or# commands against one or more devices without a connection plugin. Using that output# a pyats genie parser is applied to get structured data.## In order for RADKIT to make a connection, expose variables as environment variables or# optionally, add them as variables in the playbook.## export RADKIT_ANSIBLE_CLIENT_PRIVATE_KEY_PASSWORD_BASE64=$(echo -n 'mypassword' | base64)# export RADKIT_ANSIBLE_IDENTITY="myuserid@cisco.com"# export RADKIT_ANSIBLE_SERVICE_SERIAL="xxxx-xxx-xxxx"#----name:Example of RADKIT Genie Parsehosts:daa-csr1become:nogather_facts:notasks:-name:Get show version parsed output removed return keyscisco.radkit.genie_parsed_command:device_name:"{{inventory_hostname}}"commands:show versionos:fingerprintremove_cmd_and_device_keys:yesregister:cmd_outputdelegate_to:localhost-name:Show IOS versiondebug:msg:"{{cmd_output['genie_parsed_result']['version']['version']}}"