Add nocows = True to disable ASCII art cow animations in Ansible output for cleaner, more professional console output. Change: - Add nocows = True to [defaults] section Benefits: - Cleaner output for logging and CI/CD pipelines - More professional appearance in production environments - Better output parsing for automation tools - Consistent output format across all systems - Removes dependency on cowsay package This is a standard production configuration setting that ensures consistent and parseable output across all execution environments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
62 lines
1.6 KiB
INI
62 lines
1.6 KiB
INI
[defaults]
|
|
inventory = inventories/development
|
|
roles_path = roles
|
|
collections_path = ./collections:~/.ansible/collections
|
|
host_key_checking = False
|
|
retry_files_enabled = False
|
|
gathering = smart
|
|
fact_caching = jsonfile
|
|
fact_caching_connection = /tmp/ansible_fact_cache
|
|
fact_caching_timeout = 86400
|
|
nocows = True
|
|
|
|
# Callbacks for profiling and timing
|
|
callbacks_enabled = profile_tasks, timer
|
|
stdout_callback = yaml
|
|
bin_ansible_callbacks = True
|
|
|
|
# Security and warnings
|
|
command_warnings = True
|
|
deprecation_warnings = True
|
|
# vault_password_file = .vault_pass # Uncomment and set path to vault password file
|
|
|
|
# Logging (uncomment to enable)
|
|
# log_path = /var/log/ansible/ansible.log
|
|
|
|
[inventory]
|
|
enable_plugins = yaml, ini, script, auto, constructed
|
|
# Add cloud providers as needed:
|
|
# enable_plugins = yaml, ini, script, auto, constructed, aws_ec2, azure_rm, gcp_compute, netbox
|
|
|
|
# Cache inventory for better performance
|
|
cache = yes
|
|
cache_plugin = jsonfile
|
|
cache_timeout = 3600
|
|
cache_connection = /tmp/ansible_inventory_cache
|
|
|
|
[privilege_escalation]
|
|
become = True
|
|
become_method = sudo
|
|
become_user = root
|
|
become_ask_pass = False
|
|
|
|
[ssh_connection]
|
|
pipelining = True
|
|
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=accept-new
|
|
# Increase SSH timeout for slow connections
|
|
timeout = 30
|
|
|
|
[diff]
|
|
always = False
|
|
context = 3
|
|
|
|
[galaxy]
|
|
server_list = automation_hub, galaxy
|
|
|
|
[galaxy_server.automation_hub]
|
|
# url = https://cloud.redhat.com/api/automation-hub/
|
|
# auth_url = https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
|
|
|
|
[galaxy_server.galaxy]
|
|
url = https://galaxy.ansible.com/
|