Ansible Engine is the Red Hat supported way to run Ansible from the command line. However, we don’t support every single upstream module. There’s over 2000 modules and the modules are typically run on the remote system. Azure falls into this category. What this means is Azure modules must be installed via pip from upstream, not from RHEL repos. And, since we are installing via pip, we need to install pip first. Pip is installed via software collections.
Note that in order to run ansible-playbooks that use the Azure modules in the future, you will have to re-run the scl enable line prior to executing the playbook.
$ --- "appId": "fb511363-5616-4b1b-a74e-9c7ace6887a3" "displayName": "Rippowam" "name": "http://Rippowam" "password": "redacted" "tenant": "a003ca9d-0f6b-4f3a-adc2-cd94f0ff402d"
--- - hosts: localhost become: no vars: tasks: - name: Create a resource group azure_rm_resourcegroup: name: "Ossipee" location: "eastus2"
The azure specific login variables are in ~/ansible/variables/azure.yml. Right now, they use bad variable names, as that was what the Azure modules suggested. I plan on going back and prefixing them all with az_.