summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-pull/runme.sh
diff options
context:
space:
mode:
authorSloane Hertel <19572925+s-hertel@users.noreply.github.com>2024-11-06 17:40:15 +0100
committerGitHub <noreply@github.com>2024-11-06 17:40:15 +0100
commit157ef04b1e92105167e23b3bc0ab1432c0ff30f3 (patch)
tree49ffab9dda32db4e05ebbe36e83c7a157722d589 /test/integration/targets/ansible-pull/runme.sh
parentupdate ansible-galaxy resolvelib requirement to >= 0.5.3, < 2.0.0 (#84218) (diff)
downloadansible-157ef04b1e92105167e23b3bc0ab1432c0ff30f3.tar.xz
ansible-157ef04b1e92105167e23b3bc0ab1432c0ff30f3.zip
Add --flush-cache option to ansible-pull (#84211)
Diffstat (limited to 'test/integration/targets/ansible-pull/runme.sh')
-rwxr-xr-xtest/integration/targets/ansible-pull/runme.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/targets/ansible-pull/runme.sh b/test/integration/targets/ansible-pull/runme.sh
index b591b283dc..fd97c707f0 100755
--- a/test/integration/targets/ansible-pull/runme.sh
+++ b/test/integration/targets/ansible-pull/runme.sh
@@ -91,3 +91,9 @@ ANSIBLE_CONFIG='' ansible-pull -d "${pull_dir}" -U "${repo_dir}" conn_secret.yml
# fail if we try do delete /var/tmp
ANSIBLE_CONFIG='' ansible-pull -d var/tmp -U "${repo_dir}" --purge "$@"
+
+# test flushing the fact cache
+export ANSIBLE_CACHE_PLUGIN=jsonfile ANSIBLE_CACHE_PLUGIN_CONNECTION=./
+ansible-pull -d "${pull_dir}" -U "${repo_dir}" "$@" gather_facts.yml
+ansible-pull -d "${pull_dir}" -U "${repo_dir}" --flush-cache "$@" test_empty_facts.yml
+unset ANSIBLE_CACHE_PLUGIN ANSIBLE_CACHE_PLUGIN_CONNECTION