sodafoundation / installer

provides easy installation and basic deployment based on specific configurations for SODA Projects
Apache License 2.0
35 stars 68 forks source link

Error handling in Deployment playbook #554

Closed Thirulok22 closed 1 year ago

Thirulok22 commented 1 year ago

Issue/Feature Description: The playbook does not define any error handling or fallback mechanisms if any of the tasks fail during deployment. This may lead to incomplete or inconsistent deployment if any of the tasks fail. (anisible/site.yml)

Why to fix this issue / feature is needed(give scenarios or use cases): The deployment playbook is executed by different teams in different environments, such as development, testing, and staging. If a task fails during deployment in any of these environments, the playbook needs to provide a way to debug the issue and retry the failed task without restarting the entire deployment process.

How to reproduce, in case of a bug: Run the deployment playbook Introduce an intentional failure in one of the tasks, such as a syntax error in a configuration file Observe the output of the playbook and verify that the deployment did not complete successfully Check the deployed application to confirm that it is incomplete or inconsistent due to the failed task.