And for now, in 2.4:
ansible-vault --ask-vault-pass create foo.yml
or
ansible-vault --vault-id=prompt create foo.yml
On Mon, Aug 14, 2017 at 1:11 PM, Adrian Likins <[email protected]> wrote:
> hmm, thats a bug. I'll take a look at it, but filing at issue at github
> wouldn't hurt.
>
> On Wed, Aug 9, 2017 at 6:29 PM, Matt Mullen <[email protected]> wrote:
>
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/ansible-project/880ae29b-47d8-449e-bf04-b02e330ce11b%
>> 40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/880ae29b-47d8-449e-bf04-b02e330ce11b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAOJNLf9X-Jcr-ckgbJnAhedmwLR3ztXk5YPKQ3SGYq5E0Lw-XQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.