This Ansible Collection provides a variety of Ansible Modules to help automate management of IBM Cloud services and resources.
Compatible with Ansible Core 2.12+
The primary purpose of this Ansible Collection is to provide Ansible-driven automation capabilities for interaction with IBM Cloud services and resources. This enables organizations to leverage Ansible for tasks that are executed and intersect/require activities to be performed on IBM Cloud to fulfil the objective.
The Ansible Collection for IBM Cloud contains many generated Ansible Modules, each Ansible Module is a wrapper around Terraform Provider for IBM Cloud elements (i.e. resource or data source). This provides an extensive list Ansible Modules to perform activities within IBM Cloud.
When any Ansible Module is executed, on-the-fly Terraform code is generated and executed; a one-time download of an appropriate Terraform binary and the Terraform Provider for IBM Cloud from the Terraform Registry is performed to the Ansible temporary directory.
See the complete list of Ansible Modules within this Ansible Collection, are visible on the Ansible Galaxy entry of the Ansible Collection for IBM Cloud or in the GitHub repository /docs subdirectory.
As each Ansible Module is a wrapper for a Terraform element, it is also possible to view other examples in the documentation of the Terraform Provider for IBM Cloud.
-
Python 3.10+ installation
- Best practice recommendation when using Ansible, is to use Ansible Core from an isolated venv (e.g.
python3 -m venv ~/.py_venv/venv1 && source ~/.py_venv/venv1/bin/activate
)
- Best practice recommendation when using Ansible, is to use Ansible Core from an isolated venv (e.g.
-
Ansible Core 2.12+ installation (alternatively, using Ansible Community Edition which provides Ansible Core + various community Ansible Collections)
-
Execute Ansible Galaxy CLI to install the Ansible Collection for IBM Cloud. See alternative installation methods in the Ansible User guide - Collections, such as version-locking and using a requirements file.
ansible-galaxy collection install ibm.cloudcollection
For this Ansible Collection version, please see the matching version changelog of the Terraform Provider for IBM Cloud: