Skip to content
Snippets Groups Projects
ansible.cfg 1.41 KiB
Newer Older
# Ansible configuration
me5na7qbjqbrp's avatar
me5na7qbjqbrp committed

[defaults]

# Explicitely redefined some defaults to make play execution work
roles_path = ./roles
lookup_plugins = ./lookup_plugins
# Do not create .retry files
retry_files_enabled = False

# Generate inventory
#inventory = ./scripts/inventory_re2o.py
me5na7qbjqbrp's avatar
me5na7qbjqbrp committed
inventory = ./hosts

# Custom header in templates
# ansible_managed = Ansible managed, see https://gitlab.crans.org/nounous/ansible
me5na7qbjqbrp's avatar
me5na7qbjqbrp committed

# Do not use cows (with cowsay)
nocows = 1

# Do more parallelism
forks = 15

# Some SSH connection will take time
timeout = 60

Maxime Bombar's avatar
Maxime Bombar committed
# Enable fact_caching
gathering = smart
fact_caching = jsonfile
fact_caching_connection = ~/.cache/ansible/json/
fact_caching_timeout = 86400

me5na7qbjqbrp's avatar
me5na7qbjqbrp committed
[privilege_escalation]

# Use sudo to get priviledge access
become = True

# Ask for password
become_ask_pass = True

me5na7qbjqbrp's avatar
me5na7qbjqbrp committed
[ssh_connection]

pipelining = True
me5na7qbjqbrp's avatar
me5na7qbjqbrp committed
[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