ansible-collection-ibm
ansible-collection-ibm copied to clipboard
Is terraform pre-req to run ibm ansible collection / playbook
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, 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