Draft
Conversation
- Use fully qualified module names (ansible.builtin.shell, ansible.builtin.set_fact) - Enhance awk filtering with case-insensitive matching and bridge exclusion - Improve task names for better clarity - Add explicit cmd parameter for shell task The improved filtering now excludes bridge interfaces and handles case-insensitive MAC address matching more robustly. AI Model: Generated using Auto (agent router designed by Cursor)
502e0b3 to
d017811
Compare
d017811 to
9b14576
Compare
- Use fully qualified module names (ansible.builtin.*) throughout
- Convert boolean values from yes/no to true/false
- Improve task names with proper capitalization and clarity
- Replace shell with command for simple oc commands
- Add explicit cmd parameter to all command/shell tasks
- Fix typos: 'woker' -> 'worker', 'accros' -> 'across'
- Fix grammar: 'run lsblk on each nodes' -> 'Run lsblk on each node'
- Add become flag where appropriate (iptables commands)
Optimize jq query in find-node-disks.yml:
- Combine multiple chained select() statements into a single select()
with and conditions for better performance
- Validated query produces identical results:
* Tested with local lsblk output containing disks with/without
/boot partitions
* Confirmed correct filtering of disks with /boot mounted children
* Verified both original and optimized versions produce same output
This ensures consistency, better performance, and alignment with
Ansible best practices for module usage and task naming conventions.
AI Model: Generated using Auto (agent router designed by Cursor)
9b14576 to
16ff7a3
Compare
Author
|
I see issues with the way the disk is selected for LVMS - I'll make a new commit stack on-to the current ones. It will allow a better review/testing. but apparently, we can be slightly smarter here, and avoid any loop. |
Refactor find-node-disks to: - Only access the first node (node_0) instead of looping through 3 nodes - Extract disk devices using lsblk on the first node - Convert /dev/sdX devices to their stable /dev/disk/by-path/... symlinks using udevadm - Store all by-path device paths in common_disks variable for reliable disk identification
5b42697 to
4145c73
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.