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 |
Get Ansible: Up and Running now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.