fix: Allow non-interactive upgrades with apt #1080
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
PR addresses issue: opencrvs/opencrvs-core#10204
Official documentation: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_module.html#parameter-dpkg_options
Minor fix to k8s implementation and few additional tests: opencrvs/infrastructure#116
Testing
All tests were performed on farajaland-v19-beta-staging
Before running any tests make sure provision script is not broken: https://github.com/opencrvs/opencrvs-farajaland/actions/runs/18375887375/job/52349718950

Downgrade openssh-server version
Following command performs downgrade:
Make sure rollback was successful:
Output example:

Run upgrade manually and make sure confirmation dial pop-up:
Output:

In confirmation dialog choose
Keep local file versionRollback again and don't sing out (stay connected over ssh):
Run provision workflow to make sure you are able to brake environment: https://github.com/opencrvs/opencrvs-farajaland/actions/runs/18376153829
Once script failed, try to open new ssh session:
Fix broken environment manually:

Rollback to previous state:
Verify openssh-server still require upgrade:
Output example:

Run provision workflow from branch with fix: https://github.com/opencrvs/opencrvs-farajaland/actions/runs/18376592357/job/52352188725

Make sure openssh-server package was upgraded without any issues:

Checklist