That works, thanks!

For anyone else hitting this,  it was an already open issue:
https://github.com/ansible/ansible/issues/27885



On Mon, Aug 14, 2017 at 1:14 PM, Adrian Likins <[email protected]> wrote:

> 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%40g
>>> ooglegroups.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 a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ansible-project/l-8BBfSZGRI/unsubscribe.
> To unsubscribe from this group and all its topics, 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-ckgbJnAhedmwLR3ztXk5YPKQ3SGYq5
> E0Lw-XQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAOJNLf9X-Jcr-ckgbJnAhedmwLR3ztXk5YPKQ3SGYq5E0Lw-XQ%40mail.gmail.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/CAEWF%2Bc1JSrXHWk03v-qB5CJQpxxtp_yErnBD97ayP68y4he-Gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to