summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/adhoc/runme.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/adhoc/runme.sh')
-rwxr-xr-xtest/integration/targets/adhoc/runme.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/targets/adhoc/runme.sh b/test/integration/targets/adhoc/runme.sh
index eda6d66192..1b52947761 100755
--- a/test/integration/targets/adhoc/runme.sh
+++ b/test/integration/targets/adhoc/runme.sh
@@ -7,3 +7,11 @@ ansible -a 'sleep 20' --task-timeout 5 localhost |grep 'The command action faile
# -a parsing with json
ansible --task-timeout 5 localhost -m command -a '{"cmd": "whoami"}' | grep 'rc=0'
+
+# test ansible --flush-cache
+export ANSIBLE_CACHE_PLUGIN=jsonfile
+export ANSIBLE_CACHE_PLUGIN_CONNECTION=./
+# collect and cache facts
+ansible localhost -m setup > /dev/null && test -s localhost
+# test flushing the fact cache
+ansible --flush-cache localhost -m debug -a "msg={{ ansible_facts }}" | grep '"msg": {}'