# ansible ignores facts caching to redis

**URL:** <https://forum.ansible.com/t/ansible-ignores-facts-caching-to-redis/18714>\
**Category:** Ansible Project\
**Tags:** fedora\
**Created:** [July 9, 2015, 10:45am UTC](https://forum.ansible.com/t/ansible-ignores-facts-caching-to-redis/18714 "2015-07-09T10:45:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user66](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@user66](https://forum.ansible.com/u/user66)\
**Post date:** [July 9, 2015, 10:45am UTC](https://forum.ansible.com/t/ansible-ignores-facts-caching-to-redis/18714/1 "2015-07-09T10:45:33Z")

</div>

OS: fedora 21  
ansible-1.9.1-2.fc21.noarch

$ export ANSIBLE\_CFG=./ansible.cfg.testing

$ cat $ANSIBLE\_CFG  
[defaults]  
gathering = smart  
fact\_caching = redis  
fact\_caching\_timeout = 86400  
fact\_caching\_connection = 127.0.0.1:6379  
timeout = 5  
remote\_user = root  
log\_path = ~/ansible-testing.log  
vault\_password\_file = ~/.vault\_pass.txt  
host\_key\_checking = False  
hostfile = testing

roles\_path = roles

[ssh\_connection]  
ssh\_args = -o ControlPersist=8h

sudo yum install redis -y

sudo /bin/systemctl start redis.service

$ ansible-playbook -i testing testing-site.yml --diff --tags config

PLAY [AAPT\_DB] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

ok: [[db.kostyrev.example.org](http://db.kostyrev.example.org)]

redis-cli  
127.0.0.1:6379\> keys \*  
(empty list or set)
