I'm running 2.4.0 and trying to encrypt a file with ansible-vault. In past versions of Ansible, this command would prompt to create a vault password to encrypt the file:
C02NVAEGG3QJ:playbooks mullenma$ ansible-vault encrypt test.yml Usage: ansible-vault encrypt [options] file_name encryption/decryption utility for Ansible data files Options: --ask-vault-pass ask for vault password -h, --help show this help message and exit --new-vault-id=NEW_VAULT_ID the new vault identity to use for rekey --new-vault-password-file=NEW_VAULT_PASSWORD_FILES new vault password file for rekey --output=OUTPUT_FILE output file name for encrypt or decrypt; use - for stdout --vault-id=VAULT_IDS the vault identity to use --vault-password-file=VAULT_PASSWORD_FILES vault password file -v, --verbose verbose mode (-vvv for more, -vvvv to enable connection debugging) --version show program's version number and exit See 'ansible-vault <command> --help' for more information on a specific command. ERROR! A vault password is required to use Ansible's Vault I also tried to utilize the create keyword, with similar results: C02NVAEGG3QJ:playbooks mullenma$ ansible-vault create test.yml Usage: ansible-vault create [options] file_name encryption/decryption utility for Ansible data files Options: --ask-vault-pass ask for vault password -h, --help show this help message and exit --new-vault-id=NEW_VAULT_ID the new vault identity to use for rekey --new-vault-password-file=NEW_VAULT_PASSWORD_FILES new vault password file for rekey --output=OUTPUT_FILE output file name for encrypt or decrypt; use - for stdout --vault-id=VAULT_IDS the vault identity to use --vault-password-file=VAULT_PASSWORD_FILES vault password file -v, --verbose verbose mode (-vvv for more, -vvvv to enable connection debugging) --version show program's version number and exit See 'ansible-vault <command> --help' for more information on a specific command. ERROR! A vault password is required to use Ansible's Vault Is there something I am missing, or is this not working correctly? Thanks, Matt -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/880ae29b-47d8-449e-bf04-b02e330ce11b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.