74 lines
1.4 KiB
INI
74 lines
1.4 KiB
INI
# Ansible configuration
|
|
|
|
[defaults]
|
|
|
|
# Explicitely redefined some defaults to make play execution work
|
|
roles_path = ./roles
|
|
vars_plugins = ./vars_plugins
|
|
lookup_plugins = ./lookup_plugins
|
|
|
|
# Do not create .retry files
|
|
retry_files_enabled = False
|
|
|
|
# Generate inventory
|
|
#inventory = ./scripts/inventory_re2o.py
|
|
inventory = ./hosts
|
|
|
|
# Custom header in templates
|
|
# ansible_managed = Ansible managed, see https://gitlab.crans.org/nounous/ansible
|
|
|
|
# Do not use cows (with cowsay)
|
|
nocows = 1
|
|
|
|
# Do more parallelism
|
|
forks = 15
|
|
|
|
# Some SSH connection will take time
|
|
timeout = 60
|
|
|
|
# Enable fact_caching
|
|
gathering = smart
|
|
fact_caching = jsonfile
|
|
fact_caching_connection = ~/.cache/ansible/json/
|
|
fact_caching_timeout = 86400
|
|
|
|
[privilege_escalation]
|
|
|
|
# Use sudo to get priviledge access
|
|
become = True
|
|
|
|
# Ask for password
|
|
become_ask_pass = True
|
|
|
|
[ssh_connection]
|
|
|
|
pipelining = True
|
|
retries = 3
|
|
|
|
[diff]
|
|
|
|
# TO know what changed
|
|
always = yes
|
|
|
|
[re2o]
|
|
|
|
api_hostname = intranet.crans.org
|
|
|
|
# Whether or not using vault_cranspasswords
|
|
use_cpasswords = True
|
|
|
|
# Specify cache plugin for re2o API. By default, cache nothing
|
|
cache = jsonfile
|
|
|
|
# Only used for memcached plugin
|
|
# List of connection information for the memcached DBs
|
|
# Default is ['127.0.0.1:11211']
|
|
# memcached_connection = ['127.0.0.1:11211']
|
|
|
|
# Time in second before the cache expired. 0 means never expire cache.
|
|
# Default is 24 hours.
|
|
timeout = 86400
|
|
|
|
# Default is 12 hours.
|
|
timeout_token = 43200
|