Appendix B. Default Settings
Ansible defines a number of settings. You can override the default values of these settings in the Ansible configuration file or as an environment variable.
The configuration file is broken up into the following sections:
-
defaults
-
ssh_connection
-
paramiko
-
accelerate
| Config name | Environment variable | Default value |
|---|---|---|
hostfile |
ANSIBLE_HOSTS |
/etc/ansible/hosts |
library |
ANSIBLE_LIBRARY |
(none) |
roles_path |
ANSIBLE_ROLES_PATH |
/etc/ansible/roles |
remote_tmp |
ANSIBLE_REMOTE_TEMP |
$HOME/.ansible/tmp |
module_name |
(none) |
command |
pattern |
(none) |
* |
forks |
ANSIBLE_FORKS |
5 |
module_args |
ANSIBLE_MODULE_ARGS |
(empty string) |
module_lang |
ANSIBLE_MODULE_LANG |
en_US.UTF-8 |
timeout |
ANSIBLE_TIMEOUT |
10 |
poll_interval |
ANSIBLE_POLL_INTERVAL |
15 |
remote_user |
ANSIBLE_REMOTE_USER |
current user |
ask_pass |
ANSIBLE_ASK_PASS |
false |
private_key_file |
ANSIBLE_PRIVATE_KEY_FILE |
(none) |
sudo_user |
ANSIBLE_SUDO_USER |
root |
ask_sudo_pass |
ANSIBLE_ASK_SUDO_PASS |
false |
remote_port |
ANSIBLE_REMOTE_PORT |
(none) |
ask_vault_pass |
ANSIBLE_ASK_VAULT_PASS |
false |
vault_password_file |
ANSIBLE_VAULT_PASSWORD_FILE |
(none) |
ansible_managed |
(none) |
Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host} |
syslog_facility |
ANSIBLE_SYSLOG_FACILITY |
LOG_USER |
keep_remote_files |
ANSIBLE_KEEP_REMOTE_FILES |
true |
sudo |
ANSIBLE_SUDO |
false |
sudo_exe |
ANSIBLE_SUDO_EXE |
sudo |
sudo_flags |
ANSIBLE_SUDO_FLAGS |
-H |
hash_behaviour |
ANSIBLE_HASH_BEHAVIOUR |
replace |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access