IBM-Cloud / ansible-collection-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
70 stars 73 forks source link

Catch exception caused by concurrent terraform downloads #102

Closed jaywcarman closed 2 years ago

jaywcarman commented 2 years ago

If multiple playbooks are run concurrently, there is a chance more than one thread will attempt to download the terraform executable. The first thread to download will be fine, but any others will fail due to an OSError 26 text file busy error. By catching the exception we can attempt to continue all threads, using the newly created terraform executable.