389Modules17Plugins13Dependencies
The Azure collection.
This collection provides a series of Ansible modules and plugins for interacting with the Azure.
Documentation of individual modules is available at the Ansible Galaxy
Before using this collection, you need to install it with the Ansible Galaxy command-line tool:
ansible-galaxy collection install azure.azcollection
You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml
, using the format:
collections:
- name: azure.azcollection
To upgrade the collection to the latest available version, run the following command:
ansible-galaxy collection install azure.azcollection --upgrade
You can also install a specific version of the collection. Use the following syntax to install version 1.0.0:
ansible-galaxy collection install azure.azcollection==1.0.0
See using Ansible collections for more details.
After the collection is installed, please install the dependencies required by the collection (adjust path to collection if necessary):
pip install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements.txt
To use a module from Azure collection, please reference the full namespace, collection name, and modules name that you want to use:
---
- name: Using Azure collection
hosts: localhost
tasks:
- azure.azcollection.azure_rm_storageaccount:
resource_group: myResourceGroup
name: mystorageaccount
account_type: Standard_LRS
Or you can add full namespace and collection name in the collections
element:
---
- name: Using Azure collection
hosts: localhost
collections:
- azure.azcollection
tasks:
- azure_rm_storageaccount:
resource_group: myResourceGroup
name: mystorageaccount
account_type: Standard_LRS
For existing Ansible roles, please also reference the full namespace, collection name, and modules name which used in tasks instead of just modules name.
To use a plugin from Azure collection, please reference the full namespace, collection name, and plugins name that you want to use:
---
plugin: azure.azcollection.azure_rm
include_vm_resource_groups:
- ansible-inventory-test-rg
auth_source: auto
Test cases can be found under folder tests
.
There are many ways in which you can participate in the project, for example:
cloud
.For more information about communication, see the Ansible communication guide.
See the Changelog
GNU General Public License v3.0
See LICENSE to see the full text.
Product |
---|
Red Hat Ansible Automation Platform 2.4 |
Red Hat Ansible Automation Platform 2.5 |
This collection is used by the following collections:
Name | Summary | Version | Type |
---|
The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.