From 46f6d6e55636b2c139ff551b5f7b3ed965422717 Mon Sep 17 00:00:00 2001
From: Maxime Bombar <bombar@crans.org>
Date: Tue, 2 Jun 2020 18:05:08 +0200
Subject: [PATCH] Enable fact caching

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

diff --git a/ansible.cfg b/ansible.cfg
index c7bb9fd1..7a2e7b37 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -25,6 +25,12 @@ forks = 15
 # Some SSH connection will take time
 timeout = 60
 
+# Enable fact_caching
+gathering = smart
+fact_caching = jsonfile
+fact_caching_connection = ~/.cache/ansible/json/
+fact_caching_timeout = 86400
+
 [privilege_escalation]
 
 # Use sudo to get priviledge access
-- 
GitLab