diff options
author | Sloane Hertel <19572925+s-hertel@users.noreply.github.com> | 2024-11-06 17:40:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 17:40:15 +0100 |
commit | 157ef04b1e92105167e23b3bc0ab1432c0ff30f3 (patch) | |
tree | 49ffab9dda32db4e05ebbe36e83c7a157722d589 /lib | |
parent | update ansible-galaxy resolvelib requirement to >= 0.5.3, < 2.0.0 (#84218) (diff) | |
download | ansible-157ef04b1e92105167e23b3bc0ab1432c0ff30f3.tar.xz ansible-157ef04b1e92105167e23b3bc0ab1432c0ff30f3.zip |
Add --flush-cache option to ansible-pull (#84211)
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/ansible/cli/pull.py | 3 |
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 |