This is a code get from digital-learning of Cisco webpage
To start using and running Ansible two files are required, the inventory file and the playbook. The first few steps are going to consist on building the inventory file to indicate what device to target in this case it will only be vManage and ansible.cfg file that will be used to specify the default location of the inventory file. File. Usually the first step to interacting with an API is understanding the authentication required. The Ansible playbook will be built with tasks to start the authentication process and then tested to make sure it returns the expected response.