Skip to content

Conversation

@brianredbeard
Copy link

Changes

site.yaml:

  • Add task to verify pattern.sh exists before execution
  • Use playbook_dir instead of PWD lookup for reliable path resolution
  • Add failed_when condition to properly handle command failures
  • Print stdout_lines instead of full output object
  • Conditionally print stderr if present

ansible.cfg:

  • Add interpreter_python=auto_silent to suppress interpreter warnings
  • Add host_key_checking=False for non-interactive execution
  • Add timeout=30 to prevent hanging on slow systems
  • Add comment documenting why retry_files_enabled is False

Test Plan

  • Run ansible-playbook --syntax-check ansible/site.yaml
  • Verify playbook runs correctly from different working directories
  • Confirm script existence check fails gracefully when pattern.sh is missing

Fixes #543
Fixes #544
Fixes #545
Fixes #546
Fixes #547
Fixes #548
Fixes #549
Fixes #550
Fixes #551

site.yaml:
- Add task to verify pattern.sh exists before execution
- Use playbook_dir instead of PWD lookup for reliable path resolution
- Add failed_when condition to properly handle command failures
- Print stdout_lines instead of full output object
- Conditionally print stderr if present

ansible.cfg:
- Add interpreter_python=auto_silent to suppress interpreter warnings
- Add host_key_checking=False for non-interactive execution
- Add timeout=30 to prevent hanging on slow systems
- Add comment documenting why retry_files_enabled is False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment