mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
0461620b2d
From terraform documentation: ``` The persistent data stored in the backend belongs to a workspace. Initially the backend has only one workspace, called "default", and thus there is only one Terraform state associated with that configuration. Certain backends support multiple named workspaces, allowing multiple states to be associated with a single configuration. The configuration still has only one backend, but multiple distinct instances of that configuration to be deployed without configuring a new backend or changing authentication credentials. ``` This patch introduces the `workspace` parameter in the terraform module. The module will select the workspace is it does not exists, or simply select it if it exists. Fixes #43134 Add 'purge_workspace' parameter and handle the workspace context The `purge_workspace` parameter allows to remove a workspace when asking for state = absent. It allows to leave a clean state file without empty workspaces if the parameter is true. Also adding the support of a workspace context that allows to restore the workspace when that was active when the module started. |
||
---|---|---|
.. | ||
ansible |