Enable fact caching in ansible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Wishlist
|
Kevin Carter | ||
Kilo |
Fix Released
|
Wishlist
|
Kevin Carter | ||
Trunk |
Fix Released
|
Wishlist
|
Kevin Carter |
Bug Description
It might be beneficial to enable fact caching in ansible, especially on a hundred of nodes cluster, especially when the node facts are usually static. It can be enabled pretty easy doing :
apt-get install redis
diff --git a/playbooks/
index 5c36952..8794e68 100644
--- a/playbooks/
+++ b/playbooks/
@@ -6,6 +6,9 @@ filter_plugins = plugins/filters
gathering = smart
hostfile = inventory
host_key_checking = False
+fact_caching = redis
+fact_caching_
you can verify if it is working using :
redis-cli : get ansible_
like
127.0.0.1:6379> get ansible_
"{\"ansible_
Changed in openstack-ansible: | |
importance: | Undecided → Wishlist |
Changed in openstack-ansible: | |
status: | Incomplete → In Progress |
assignee: | nobody → Bjoern Teipel (bjoern-teipel) |
milestone: | none → 12.0.0 |
Changed in openstack-ansible: | |
status: | Triaged → In Progress |
Proposed change for master : https:/ /review. openstack. org/#/c/ 225967/