Skip to Content
Ansible: Up and Running
book

Ansible: Up and Running

by Lorin Hochstein
May 2015
Intermediate to advanced
200 pages
7h 14m
English
O'Reilly Media, Inc.
Content preview from Ansible: Up and Running

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

Table B-1. Defaults section
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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Ansible: Up and Running, 2nd Edition

Ansible: Up and Running, 2nd Edition

Lorin Hochstein, Rene Moser

Publisher Resources

ISBN: 9781491915318Errata Page