jsonfile fact caching error: error, fact_caching_connection is not set, cannot use fact cache

I have added the following to ansible.cfg

`
fact_caching = jsonfile
fact_caching_location = /tmp/ansible_facts
fact_caching_timeout = 86400

`

With these set, any attempts to use ansible or ansible-playbook (tried multiple different known working playbooks) fails with the error:

`
error, fact_caching_connection is not set, cannot use fact cache

`

I have tried this on both a mac and a linux machine.

What is wrong there?

I should add that both machines are using ansible 1.9.2.

have you tried setting fact_caching_connection?

There is no such keyword according to the docs:
http://docs.ansible.com/ansible/playbooks_variables.html#fact-caching

I can’t even tell what it would want to be set to.
jsonfile?
/tmp/ansible_facts?
something else?

docs are wrong, location doesn't exist, i'll fix the docs

Great. So,


fact_caching_location

should actually be

`
fact_caching_connection

`

This should be dumping some sort of json of cached facts into that directory, correct? When I run anything that gathers facts, the /tmp/ansible_facts/ dir is created. However, it contains no files and no actual caching is happening.