diff --git a/plugins/lookup/kustomize.py b/plugins/lookup/kustomize.py index 2500fb245c..05083602da 100644 --- a/plugins/lookup/kustomize.py +++ b/plugins/lookup/kustomize.py @@ -30,6 +30,9 @@ opt_dirs: description: - An optional list of directories to search for the executable in addition to PATH. + build_flags: + description: + - Set additional build flags, like --enable-alpha-plugins requirements: - "python >= 3.6" @@ -136,6 +139,9 @@ def run( ) ) + if "build_flags" in kwargs: + command += [kwargs["build_flags"]] + (out, err) = run_command(command) if err: raise AnsibleLookupError(