Fist step
Download Ansible on your compute. Access the https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html choose your operating system
Second step
Access your project or create the project. go to IAM & Admin and go to service account choose your project in actions create key and download key in format .json or .pem, indicate path. Example in the code.