Skip to content

Conversation

@cjeanner
Copy link

@cjeanner cjeanner commented Dec 3, 2025

No description provided.

@cjeanner cjeanner marked this pull request as draft December 3, 2025 14:23
- 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)
@cjeanner cjeanner force-pushed the refactor/values-prep branch 2 times, most recently from ca2adbf to 502e0b3 Compare December 9, 2025 14:33
- 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)
@cjeanner cjeanner force-pushed the refactor/values-prep branch from 502e0b3 to d017811 Compare December 9, 2025 14:45
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.

1 participant