Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBA-844 #504

Merged
merged 1 commit into from
Jan 21, 2025
Merged

DBA-844 #504

merged 1 commit into from
Jan 21, 2025

Conversation

dave-belton
Copy link
Contributor

Commit Description:
Refactor Alfresco Wallet Role Inclusion to Use include_role to avoid error when run from MIS Config Artefact workflow

Summary of Change:
Replaced the roles section for the alfresco_wallet role in playbooks/delius-artefacts-playbook.yml with a task that uses the include_role module. This ensures the role is conditionally included at runtime based on the deploy_alfresco_wallet variable.

Reason for Change:
Ansible pre-checks for the existence of roles in the roles section, even when they are conditionally included. This caused errors in workflows (e.g., oracle-db-mis-configuration-artefacts.yml) where the alfresco_wallet role was not needed and its directory did not exist. Using include_role delays role inclusion until the when condition is evaluated, avoiding the unnecessary pre-check and error.

Tested with workflow run "Oracle: delius-mis-dev_mis_configuration_artefacts #21"

Commit Description:
Refactor Alfresco Wallet Role Inclusion to Use include_role

Summary of Change:
Replaced the roles section for the alfresco_wallet role in playbooks/delius-artefacts-playbook.yml with a task that uses the include_role module. This ensures the role is conditionally included at runtime based on the deploy_alfresco_wallet variable.

Reason for Change:
Ansible pre-checks for the existence of roles in the roles section, even when they are conditionally included. This caused errors in workflows (e.g., oracle-db-mis-configuration-artefacts.yml) where the alfresco_wallet role was not needed and its directory did not exist. Using include_role delays role inclusion until the when condition is evaluated, avoiding the unnecessary pre-check and error.
@dave-belton dave-belton requested review from a team as code owners January 20, 2025 18:44
Copy link
Contributor

@bill-buchan bill-buchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dave-belton dave-belton merged commit 532cec4 into main Jan 21, 2025
2 checks passed
@dave-belton dave-belton deleted the DBA-844-fix-for-mis-deployusers branch January 21, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants