From e248ddfb804a430c1b0596710aeceba9c98e394a Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Thu, 5 Dec 2024 11:12:48 +0100 Subject: [PATCH] add common gitignores and tell ansible to not overgather --- .gitignore | 11 ++++++++++- ansible.cfg | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c94a463..20f3d25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,13 @@ +*~ +*.*.swp +*.retry + ### Values and Secrets ### .vault-password.txt hosts -ansible.cfg + +# Python bytecode +*.pyc + +# Macs +.DS_Store diff --git a/ansible.cfg b/ansible.cfg index 0bdf241..c72532e 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -7,6 +7,9 @@ gather_subset=!hardware no_log = False log_path = ansible.log +# Don't gather host facts at the start of each play if they've already been gathered +gathering = smart + # Show diffs of changes [diff] always = True