From f99b6ce6e7ec88d18d4cfb755f5a86206ef477ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <Joerg.Sachse@slub-dresden.de>
Date: Fri, 18 Mar 2022 15:25:05 +0100
Subject: [PATCH] chore: configure Ansible for improved performance and logging

---
 ansible.cfg | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/ansible.cfg b/ansible.cfg
index 522ae80..50ed693 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -32,6 +32,25 @@ roles_path = ../:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
 # DEFAULT: display_skipped_hosts = true
 display_skipped_hosts = false
 
+use_persistent_connections=true
+
+# list all Ansible Callback Plugins: "ansible-doc -t callback -l"
+# online documentation: https://docs.ansible.com/ansible/latest/plugins/callback.html
+# run code profiling for performance analysis
+# callbacks_enabled = profile_roles, profile_tasks, timer
+# get formatted output
+# callbacks_enabled = yaml
+# get minimal output
+# callbacks_enabled = dense
+
+# set default output callback plugin
+stdout_callback = yaml
+
+# Setting a callback plugin for ad-hoc commands
+bin_ansible_callbacks = True
+
+callbacks_enabled: yaml
+
 [inventory]
 # Ignore these extensions when parsing a directory as inventory source.
 ignore_extensions = .pyc, .pyo, .swp, .bak, ~, .rpm, .md, .txt, ~, .orig, .ini, .cfg, .retry
-- 
GitLab