-
Notifications
You must be signed in to change notification settings - Fork 25
Ubuntu Upgrade Script tweaks #2141
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
base: stackhpc/2024.1
Are you sure you want to change the base?
Conversation
jovial
commented
Feb 6, 2026
- Tweaked ordering to fix various issues
- Added additional tags so that you can resume if something goes wrong
- Tweaked ordering to fix various issues - Added additional tags so that you can resume if something goes wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request refactors the Ubuntu upgrade playbook by reordering tasks and adding tags, which should make the process more robust and easier to resume on failure. The changes are logical, grouping repository cleanup tasks together. I've added a few suggestions to remove some minor redundancies introduced in the new code, such as an unnecessary loop and duplicate tags.
| ansible.builtin.blockinfile: | ||
| path: "{{ item }}" | ||
| state: absent | ||
| become: true | ||
| loop: | ||
| - /etc/apt/sources.list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| remote_src: true | ||
| become: true | ||
| when: hostvars[inventory_hostname].stackhpc_repos_enabled | ||
| tags: post |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - sources.list.d/ubuntu.sources | ||
| become: true | ||
| when: hostvars[inventory_hostname].stackhpc_repos_enabled | ||
| tags: post |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.