summaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
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 'lib')
-rwxr-xr-xlib/ansible/cli/pull.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ansible/cli/pull.py b/lib/ansible/cli/pull.py
index 212d63872e..ee24c9ff9a 100755
--- a/lib/ansible/cli/pull.py
+++ b/lib/ansible/cli/pull.py
@@ -298,6 +298,9 @@ class PullCLI(CLI):
if context.CLIARGS['diff']:
cmd += ' -D'
+ if context.CLIARGS['flush_cache']:
+ cmd += ' --flush-cache'
+
os.chdir(context.CLIARGS['dest'])
# redo inventory options as new files might exist now