commit 77d3dda5725510e4eb1f5ae24c3468d720d636f0 Author: Infrastructure Team Date: Mon Nov 10 22:50:59 2025 +0100 Add infrastructure configuration files - Add .gitignore for Ansible project (Python, temp files, secrets) - Add ansible.cfg with optimized settings - Enable SSH pipelining for performance - Configure fact caching with jsonfile backend - Set roles_path and inventory defaults diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..671bf9c --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +# Ansible +*.retry +*.log +.vault_pass +.vault_password + +# Python +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +venv/ +ENV/ + +# Temporary files +*.swp +*.swo +*~ +.DS_Store + +# Ansible fact cache +/tmp/ansible_fact_cache/ + +# Sensitive data +vault.yml +secrets.yml +credentials.yml + +# IDE +.vscode/ +.idea/ +*.iml + +# Test artifacts +.pytest_cache/ +.coverage +htmlcov/ diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..4283576 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,19 @@ +[defaults] +inventory = inventories/development +roles_path = roles +host_key_checking = False +retry_files_enabled = False +gathering = smart +fact_caching = jsonfile +fact_caching_connection = /tmp/ansible_fact_cache +fact_caching_timeout = 86400 + +[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