Ansible-Playbook-VM-Details Run the above playbook using below command ansible-playbook hosts.yaml --extra-vars "ansible_sudo_pass=your-pc-password"