How can I install and configure Ansible on an Ubuntu Azure VM using a service principal for authentication?
I need to run Ansible playbooks against Azure resources from an Ubuntu 22.04 virtual machine in Azure, authenticating with a service principal instead of interactive login. The setup must ensure that the required Ansible version and the azure.azcollection modules are available, and that the service principal credentials are provided securely without exposing