From: Michael Jeanson Date: Thu, 30 Sep 2021 19:35:57 +0000 (-0400) Subject: ansible: update default ansible.cfg X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5c32688f667a9630d339180b1f20fd3ca7351e6d;p=lttng-ci.git ansible: update default ansible.cfg Signed-off-by: Michael Jeanson --- diff --git a/automation/ansible/ansible.cfg b/automation/ansible/ansible.cfg index fdf7ce4..da6cce2 100644 --- a/automation/ansible/ansible.cfg +++ b/automation/ansible/ansible.cfg @@ -16,6 +16,7 @@ #module_utils = /usr/share/my_module_utils/ #remote_tmp = ~/.ansible/tmp #local_tmp = ~/.ansible/tmp +#plugin_filters_cfg = /etc/ansible/plugin_filters.yml #forks = 5 #poll_interval = 15 #sudo_user = root @@ -51,9 +52,18 @@ # with a maximum timeout of 10 seconds. This # option lets you increase or decrease that # timeout to something more suitable for the -# environment. +# environment. # gather_timeout = 10 +# Ansible facts are available inside the ansible_facts.* dictionary +# namespace. This setting maintains the behaviour which was the default prior +# to 2.5, duplicating these variables into the main namespace, each with a +# prefix of 'ansible_'. +# This variable is set to True by default for backwards compatibility. It +# will be changed to a default of 'False' in a future release. +# ansible_facts. +# inject_facts_as_vars = True + # additional paths to search for roles in, colon separated #roles_path = /etc/ansible/roles @@ -76,8 +86,8 @@ # default. As of 2.0, includes are dynamic by default. Setting these # values to True will make includes behave more like they did in the # 1.x versions. -#task_includes_static = True -#handler_includes_static = True +#task_includes_static = False +#handler_includes_static = False # Controls if a missing handler for a notification event is an error or a warning #error_on_missing_handler = True @@ -180,6 +190,7 @@ remote_user = root # set plugin path directories here, separate with colons #action_plugins = /usr/share/ansible/plugins/action +#become_plugins = /usr/share/ansible/plugins/become #cache_plugins = /usr/share/ansible/plugins/cache #callback_plugins = /usr/share/ansible/plugins/callback #connection_plugins = /usr/share/ansible/plugins/connection @@ -231,10 +242,17 @@ remote_user = root # current IP information. #fact_caching = memory +#This option tells Ansible where to cache facts. The value is plugin dependent. +#For the jsonfile plugin, it should be a path to a local directory. +#For the redis plugin, the value is a host:port:database triplet: fact_caching_connection = localhost:6379:0 + +#fact_caching_connection=/tmp + + # 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 +# When a playbook fails a .retry file can be created that will be placed in ~/ +# You can enable this feature by setting retry_files_enabled to True # and you can change the location of the files by setting retry_files_save_path #retry_files_enabled = False @@ -295,7 +313,7 @@ remote_user = root # This family of modules use an alternative execution path optimized for network appliances # only update this setting if you know how this works, otherwise it can break module execution -#network_group_modules=['eos', 'nxos', 'ios', 'iosxr', 'junos', 'vyos'] +#network_group_modules=eos, nxos, ios, iosxr, junos, vyos # When enabled, this option allows lookups (via variables like {{lookup('foo')}} or when used as # a loop with `with_foo`) to return data that is not marked "unsafe". This means the data may contain @@ -307,7 +325,7 @@ remote_user = root #any_errors_fatal = False [inventory] -# enable inventory plugins, default: 'host_list', 'script', 'yaml', 'ini' +# enable inventory plugins, default: 'host_list', 'script', 'auto', 'yaml', 'ini', 'toml' #enable_plugins = host_list, virtualbox, yaml, constructed # ignore these extensions when parsing a directory as inventory source @@ -356,16 +374,16 @@ remote_user = root # paramiko on older platforms rather than removing it, -C controls compression use #ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s -# The base directory for the ControlPath sockets. +# The base directory for the ControlPath sockets. # This is the "%(directory)s" in the control_path option -# -# Example: +# +# Example: # control_path_dir = /tmp/.ansible/cp #control_path_dir = ~/.ansible/cp -# The path to use for the ControlPath sockets. This defaults to a hashed string of the hostname, -# port and username (empty string in the config). The hash mitigates a common problem users -# found with long hostames and the conventional %(directory)s/ansible-ssh-%%h-%%p-%%r format. +# The path to use for the ControlPath sockets. This defaults to a hashed string of the hostname, +# port and username (empty string in the config). The hash mitigates a common problem users +# found with long hostnames and the conventional %(directory)s/ansible-ssh-%%h-%%p-%%r format. # In those cases, a "too long for Unix domain socket" ssh error would occur. # # Example: @@ -401,26 +419,28 @@ remote_user = root # only be disabled if your sftp version has problems with batch mode #sftp_batch_mode = False +# The -tt argument is passed to ssh when pipelining is not enabled because sudo +# requires a tty by default. +#usetty = True + +# Number of times to retry an SSH connection to a host, in case of UNREACHABLE. +# For each retry attempt, there is an exponential backoff, +# so after the first attempt there is 1s wait, then 2s, 4s etc. up to 30s (max). +#retries = 3 + [persistent_connection] # Configures the persistent connection timeout value in seconds. This value is -# how long the persistent connection will remain idle before it is destroyed. -# If the connection doesn't receive a request before the timeout value +# how long the persistent connection will remain idle before it is destroyed. +# If the connection doesn't receive a request before the timeout value # expires, the connection is shutdown. The default value is 30 seconds. #connect_timeout = 30 -# Configures the persistent connection retry timeout. This value configures the -# the retry timeout that ansible-connection will wait to connect -# to the local domain socket. This value must be larger than the -# ssh timeout (timeout) and less than persistent connection idle timeout (connect_timeout). -# The default value is 15 seconds. -#connect_retry_timeout = 15 - # The command timeout value defines the amount of time to wait for a command # or RPC call before timing out. The value for the command timeout must # be less than the value of the persistent connection idle timeout (connect_timeout) -# The default value is 10 second. -#command_timeout = 10 +# The default value is 30 second. +#command_timeout = 30 [accelerate] #accelerate_port = 5099 @@ -441,7 +461,7 @@ remote_user = root # file systems that require special treatment when dealing with security context # the default behaviour that copies the existing context or uses the user default # needs to be changed to use the file system dependent context. -#special_context_filesystems=nfs,vboxsf,fuse,ramfs,9p +#special_context_filesystems=nfs,vboxsf,fuse,ramfs,9p,vfat # Set this to yes to allow libvirt_lxc connections to work without SELinux. #libvirt_lxc_noseclabel = yes