# RADKIT 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.## 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 Commandhosts:daa-csr1become:nogather_facts:notasks:-name:Execute 'show version' on CSR on a single devicecisco.radkit.command:device_name:"{{inventory_hostname}}"command:show versionregister:cmd_outputdelegate_to:localhost-name:Show outputdebug:msg:"{{cmd_output.stdout_lines}}"-name:Execute 'show version' on CSR on a multiple devicescisco.radkit.command:filter_attr:namefilter_pattern:daa-csrcommand:show versionregister:cmd_outputdelegate_to:localhost-name:Show output from all devicesdebug:msg:"{{cmd_output['ansible_module_results']}}"