- Modify ansible.cfg to increase SSH connection retries from 2 to 3 and add a connection timeout setting for better reliability. - Enhance auto-fallback.sh script to provide detailed feedback during IP connectivity tests, including clearer status messages for primary and fallback IP checks. - Update documentation to reflect changes in connectivity testing and fallback procedures. These updates improve the robustness of the connectivity testing process and ensure smoother operations during IP failover scenarios.
25 lines
723 B
INI
25 lines
723 B
INI
[defaults]
|
|
inventory = inventories/production
|
|
roles_path = roles
|
|
host_key_checking = False
|
|
stdout_callback = yaml
|
|
bin_ansible_callbacks = True
|
|
retry_files_enabled = False
|
|
gathering = smart
|
|
fact_caching = jsonfile
|
|
fact_caching_connection = .ansible/facts
|
|
fact_caching_timeout = 86400
|
|
interpreter_python = auto_silent
|
|
deprecation_warnings = False
|
|
forks = 20
|
|
pipelining = True
|
|
callbacks_enabled = profile_tasks,timer
|
|
vault_password_file = ~/.ansible-vault-pass
|
|
# become_ask_pass = True # Use --ask-become-pass in Makefile instead
|
|
ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S
|
|
|
|
[ssh_connection]
|
|
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=5
|
|
retries = 3
|
|
pipelining = True
|