mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-07 18:05:09 +00:00
Changes: - Update GitHub Actions test-deploy workflow to run three staged deploys (normal+debug, reset+debug, async) using inventory-generated vault password files. - Switch Ansible stdout_callback to ansible.builtin.default and enable YAML-style result_format via callback_default. - Refactor cli/deploy.py: typed run_ansible_playbook(), structured MODE_* handling, better error reporting, and preserved vault/interactive behaviour. - Add unit tests for deploy CLI (bool parsing, MODE_* loading, dynamic args, validation, and ansible-playbook command construction) under tests/unit/cli/test_deploy.py. Context: see ChatGPT conversation on 2025-12-02: https://chatgpt.com/share/692f1035-6bc4-800f-91a9-342db54e1a75
32 lines
892 B
INI
32 lines
892 B
INI
[defaults]
|
|
# --- Performance & Behavior ---
|
|
pipelining = True
|
|
forks = 25
|
|
strategy = linear
|
|
gathering = smart
|
|
timeout = 120
|
|
retry_files_enabled = False
|
|
host_key_checking = True
|
|
deprecation_warnings = True
|
|
interpreter_python = auto_silent
|
|
|
|
# --- Output & Profiling ---
|
|
stdout_callback = ansible.builtin.default
|
|
callbacks_enabled = profile_tasks,timer
|
|
|
|
# --- Plugin paths ---
|
|
filter_plugins = ./filter_plugins
|
|
lookup_plugins = ./lookup_plugins
|
|
module_utils = ./module_utils
|
|
|
|
[ssh_connection]
|
|
ssh_args = -o ControlMaster=auto -o ControlPersist=20s -o ControlPath=~/.ssh/ansible-%h-%p-%r -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o StrictHostKeyChecking=accept-new -o PreferredAuthentications=publickey,password,keyboard-interactive
|
|
pipelining = True
|
|
transfer_method = smart
|
|
|
|
[persistent_connection]
|
|
connect_timeout = 30
|
|
command_timeout = 60
|
|
|
|
[callback_default]
|
|
result_format = yaml |