-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathansible.cfg
104 lines (84 loc) · 3.96 KB
/
ansible.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Config file for ansible -- https://ansible.com/
# ===============================================
# Nearly all parameters can be overridden in ansible-playbook
# or with command line flags. ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory or /etc/ansible/ansible.cfg, whichever it
# finds first
# docs: https://docs.ansible.com/ansible/latest/reference_appendices/config.html
# CODE ENIGMA RECOMMENDED CONFIG
# This file contains the recommended config changes for ce-provision
# This file does not contain all the options for Ansible
# To generate an example config file (a "disabled" one with all default settings, commented out):
# $ ansible-config init --disabled > ansible.cfg
[defaults]
ansible_managed = Code Enigma - This file is managed in Ansible - Do not edit.
interpreter_python = auto_silent
remote_tmp = /tmp
# SSH timeout
timeout = 60
# Load the SOPS plugin
# Docs: https://docs.ansible.com/ansible/latest/collections/community/sops/sops_vars.html
vars_plugins_enabled = host_group_vars,community.sops.sops
# Additional plugin lookup paths
vars_plugins = $HOME/ce-provision/plugins/vars:/usr/share/ansible/plugins/vars
filter_plugins = $HOME/ce-provision/plugins/filter:/usr/share/ansible/plugins/filter
# Where to fetch roles and modules from
inventory = $HOME/ce-provision/hosts
library = $HOME/ce-provision/modules
# additional paths to search for roles in, colon separated
# Assumes ce-provision is in the $HOME directory of the executing user
# $HOME/ce-provision/galaxy/roles is first so Ansible Galaxy installs roles there first
roles_path = $HOME/ce-provision/galaxy/roles:$HOME/ce-provision/roles:$HOME/ce-provision/config/roles:$HOME/.ansible/roles:$HOME/.ansible/collections/ansible_collections
collections_path = $HOME/ce-provision/galaxy/
# uncomment this to disable SSH key host checking
host_key_checking = False
# change the default callback, you can only have one 'stdout' type enabled at a time.
# use 'yaml' for tidy output
stdout_callback = yaml
stderr_callback = yaml
# display time taken by each task
callbacks_enabled = ansible.posix.profile_tasks
# if inventory variables overlap, does the higher precedence one win
# or are hash values merged together? The default is 'replace' but
# this can also be set to 'merge'.
hash_behaviour = merge
# retry files
# When a playbook fails by default a .retry file will be created in ~/
# You can disable this feature by setting retry_files_enabled to False
# and you can change the location of the files by setting retry_files_save_path
retry_files_enabled = False
# set default errors for all plays
any_errors_fatal = True
[inventory]
# enable inventory plugins, default: 'host_list', 'script', 'yaml', 'ini', 'auto'
# we provide an ini file by default in ce-provision-config-example.
# for complex group structures consider using YAML - note using YAML only will break the ce-provision launcher playbook.
# you can use multiple plugins at once, e.g. ini and yaml - Ansible will load all recognised inventory files.
enable_plugins = ini, yaml, host_list
# uncomment the below line and comment the above for AWS EC2 inventory discovery
#enable_plugins = amazon.aws.aws_ec2, ini, yaml, host_list
[ssh_connection]
# Enabling pipelining reduces the number of SSH operations required to
# execute a module on the remote server. This can result in a significant
# performance improvement when enabled, however when using "sudo:" you must
# first disable 'requiretty' in /etc/sudoers
#
# By default, this option is disabled to preserve compatibility with
# sudoers configurations that have requiretty (the default on many distros).
#
pipelining = True
[colors]
highlight = white
verbose = bright blue
warn = bright purple
error = bright red
debug = bright gray
deprecate = purple
skip = cyan
unreachable = red
ok = green
changed = yellow
diff_add = green
diff_remove = red
diff_lines = cyan