mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Only expose rekey options to ansible-vault command
`ansible-vault` is the only cli command which knows how to handle the rekey options `--new-vault-id` and `--new-vault-password-file`. No point in exposing those rekey options to any of the other ansible commands. On a practical level I think this matters most in ensuring that `--help` doesn't produce any false/unhelpful output.
This commit is contained in:
committed by
Brian Coca
parent
a0dc776f56
commit
b78ab37a94
@@ -110,6 +110,7 @@ class VaultCLI(CLI):
|
||||
|
||||
self.parser = CLI.base_parser(
|
||||
vault_opts=True,
|
||||
vault_rekey_opts=True,
|
||||
usage="usage: %%prog [%s] [options] [vaultfile.yml]" % "|".join(self.VALID_ACTIONS),
|
||||
desc="encryption/decryption utility for Ansible data files",
|
||||
epilog="\nSee '%s <command> --help' for more information on a specific command.\n\n" % os.path.basename(sys.argv[0])
|
||||
|
||||
Reference in New Issue
Block a user