Simplify ansible.cfg for general purpose usage

The new ansible.cfg file is copied from matrix-docker-ansible-deploy
and should provide better defaults for general purpose usage.

We've had instances of people wishing to run certain things like `just roles`
using a regular user and to actually run the playbook (`just install-all`) as `root`.
If both of these invocations try to write temporary files to `/tmp/mash*`, they run into a conflict.

It's probably better to avoid writing stuff to `/tmp` by default anyway.
This commit is contained in:
Slavi Pantaleev 2023-12-07 08:46:20 +02:00
parent 168941d0b0
commit d531513350

View file

@ -1,29 +1,6 @@
[defaults]
forks = 50
timeout = 86400
strategy = linear
ansible_managed = Autogenerated file, do NOT edit manually.
retry_files_enabled = False
stdout_callback = yaml
# Paths
inventory = inventory/hosts
roles_path = roles
log_path = /tmp/mash.log
# Remote default
remote_user = root
host_key_checking = False
# Display
display_skipped_hosts = False
# Facts
gathering = smart
fact_caching = jsonfile
fact_caching_connection=/tmp/mash
[ssh_connection]
[connection]
pipelining = True
ssh_args = -C -o ControlMaster=auto -o ControlPersist=30m -o PreferredAuthentications=publickey
control_path = /tmp/mash/ssh-%%h-%%p-%%r