From f146f9af6558dab826e4b4edbae401523e73c3eb Mon Sep 17 00:00:00 2001 From: saibotk Date: Sun, 10 Mar 2024 01:07:52 +0100 Subject: [PATCH] feat(ansible): Adjust configs This disables cowsay messages. Enables persistent connections, so that multiple playbooks can reuse the connection. Enables pipelining for speed, since we are not affected by the limitation described in https://docs.ansible.com/ansible/latest/reference_appendices/config.html#envvar-ANSIBLE_PIPELINING this gives us some speed boost. Additionally the playbook dir was set, so that some commands can benefit from the correct default. --- ansible.cfg | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index 25383ac..3cd58e2 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -2,15 +2,23 @@ roles_path = ./roles:$HOME/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles collections_path = ./collections:$HOME/.ansible/collections:/usr/share/ansible/collections:/etc/ansible/collections +playbook_dir = ./playbooks inventory = ./inventory -retry_files_enabled = false + vault_password_file = .vault_pass +retry_files_enabled = False +nocows=True +use_persistent_connections = True + +[connection] +pipelining = True + [ssh_connection] transfer_method = piped [privilege_escalation] -become_ask_pass = false +become_ask_pass = False [galaxy] role_skeleton = ./.ansible/skeleton/default