ansible.cfg•2.69 kB
[defaults]
# Inventory settings
inventory = inventory/aws_ec2.yml
inventory_plugins = ~/.ansible/plugins/inventory:/usr/share/ansible/plugins/inventory
# General settings
remote_user = ec2-user
host_key_checking = False
retry_files_enabled = False
roles_path = roles
library = library
module_utils = module_utils
callback_whitelist = profile_tasks, timer
stdout_callback = yaml
bin_ansible_callbacks = True
nocows = 1
force_color = 1
deprecation_warnings = False
command_warnings = False
system_warnings = False
interpreter_python = auto_silent
# Performance settings
forks = 20
gathering = smart
fact_caching = jsonfile
fact_caching_connection = /tmp/ansible_fact_cache
fact_caching_timeout = 7200
internal_poll_interval = 0.001
callback_enabled = true
# SSH settings
timeout = 30
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ServerAliveInterval=30 -o ServerAliveCountMax=10
pipelining = True
control_path = /tmp/ansible-ssh-%%h-%%p-%%r
# Privilege escalation settings
become = True
become_method = sudo
become_user = root
become_ask_pass = False
# Error handling
any_errors_fatal = False
max_fail_percentage = 0
error_on_undefined_vars = True
display_skipped_hosts = False
display_args_to_stdout = False
show_custom_stats = True
# Logging settings
log_path = /tmp/ansible.log
verbosity = 0
no_target_syslog = False
# Jinja2 settings
jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
# Vault settings
vault_password_file = ~/.ansible/vault_password
[inventory]
# Inventory settings
enable_plugins = aws_ec2, host_list, script, yaml, ini, auto
unparsed_is_failed = True
cache = True
cache_plugin = jsonfile
cache_connection = /tmp/ansible_inventory_cache
cache_timeout = 3600
[privilege_escalation]
# Privilege escalation settings
become = True
become_method = sudo
become_user = root
become_ask_pass = False
[ssh_connection]
# SSH connection settings
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ServerAliveInterval=30 -o ServerAliveCountMax=10
control_path = /tmp/ansible-ssh-%%h-%%p-%%r
pipelining = True
retries = 3
timeout = 30
[persistent_connection]
# Persistent connection settings
connect_timeout = 30
connect_retries = 3
connect_interval = 1
[accelerate]
# Accelerate settings
accelerate_port = 5099
accelerate_timeout = 30
accelerate_connect_timeout = 5.0
[selinux]
# SELinux settings
special_context_filesystems = nfs,vboxsf,fuse,ramfs,9p,vfat
[colors]
# Color settings
highlight = white
verbose = blue
warn = bright purple
error = red
debug = dark gray
deprecate = purple
skip = cyan
unreachable = red
ok = green
changed = yellow
diff_add = green
diff_remove = red
diff_lines = cyan
[diff]
# Diff settings
always = False
context = 3