feat(openshift): add restart for openscanhub + reusable role #3429
No reviewers
Labels
No labels
ai-review-please
freeze-break-request
post-freeze
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
infra/ansible!3429
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "smoliicek/ansible:add-restart-osh"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this commit adds a reusable role for restarting / rebuilding ocp stuff.
currently added this to playbooks/openshift-apps/openscanhub.yml, since it was referenced in infra/tickets#11884
not sure if i should add it to the other playbooks too, or no
Assisted-by: gpt-5.5 in Codex
Signed-off-by: Vít Smolík me@smoliicek.cz
AI Code Review
Detailed Code Review
The changes introduce a generic OpenShift app-actions role meant to handle builds and rollouts (restarts) conditionally based on provided tags. The role uses
nevertags coupled with explicitbuild/rebuildorrestart/rollouttags to only execute these actions when intentionally requested. The implementation correctly loops over defined resources and validates thatapp_actions_appis set before doing so. Integrating it intoopenscanhub.ymlsolves the immediate infrastructure need to cleanly restart its deployments. The code follows standard Ansible practices for include_role loops.📂 File Reviews
📄 `roles/openshift/app-actions/tasks/main.yml` - Main tasks file for the app-actions role handling conditional builds and rollouts.
ansible.builtin.assertto make debugging easier if the role is invoked incorrectly.fail_msgto the assert tasks.✅ Summary
fail_msgto assert statements for better operator experience when debugging missing variables.🤖 AI Code Review | Generated with ai-code-review | Model:
gemini-3.1-pro-preview⚠️ AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.
So, this looks fine to me. Lets merge it.
As to other apps, yes, we could convert them all... either as we do other things, or all at once. If you want to do a pr to move the rest that would be fine with me. ;)