ansible-collection-ibm icon indicating copy to clipboard operation
ansible-collection-ibm copied to clipboard

Is terraform pre-req to run ibm ansible collection / playbook

Open indirakalagara opened this issue 2 years ago • 1 comments

Customer is having issues running the ansible playbook without installing terraform. Once terraform is installed, the playbook proceeded further.

Document https://galaxy.ansible.com/ibm/cloudcollection doesn't mention terraform as pre-req. However the ansible modules are using terraform resources.

Request team to provide the inputs and update the docs with specific version required for both terraform and IBM provider.

indirakalagara avatar Mar 07 '22 09:03 indirakalagara

@indirakalagara, ansible collection doesn't need terraform installation as pre-req. When user installs the collection and runs a playbook for the first time, the terraform binary and and provider binaries are downloaded and the same used for consecutive playbooks.

Here is the part of code, which does this operation - https://github.com/IBM-Cloud/ansible-collection-ibm/blob/master/plugins/module_utils/ibmcloud.py#L705 and https://github.com/IBM-Cloud/ansible-collection-ibm/blob/master/plugins/module_utils/ibmcloud.py#L719

Anil-CM avatar Mar 07 '22 11:03 Anil-CM