Open felixfontein opened 1 year ago
CC @dorkamotorka
cc @m-yosefpor @rainerleber click here for bot help
Hi @felixfontein Have you got any news regarding this issue ? Can I help in any way ? Have a great day :)
@MehuiSeklayr I'm not sure whether anyone is still working on this module, since there now is a better maintained copy in a new collection cloud.terraform - see https://github.com/ansible-community/community-topics/issues/192.
@felixfontein I was definitely not aware of cloud.terraform I will look into it right now, and eventually work on a migration. Feel free to close this ticket, then :) Thank you so much !
Summary
I recently upgraded community.general in one of our project, and I believe #5832 didn't solve a bug but actually introduced one: the terraform module is now unable to create workspaces when they do not exist.
Initialisation happens on line 498, and this PR includes the workspace right in it, but creation of said workspace only happens on line 503. Hence for our playbooks to work, we now have to manually create workspaces before initialisation.
I believe this is both a breaking change and something that is quite contrary to the way Terraform actually works. Although I understand @dorkamotorka's use case, could we revert this change until a more battle-proven solution is on the table ?
Originally posted by @MehuiSeklayr in https://github.com/ansible-collections/community.general/issues/5735#issuecomment-1438085655
Issue Type
Bug Report
Component Name
plugins/modules/terraform.py
Ansible Version
doesn't matter