ansible-vault create foo.yml returns [Errno 2] No such file or directory

1,554 views
Skip to first unread message

Patrick S

unread,
Jun 17, 2014, 5:58:17 AM6/17/14
to ansible...@googlegroups.com
Hi,

I'm running version 1.6.2 and when going through the documentation and copying the ansible-vault create example:
ansible-vault create foo.yml

The following is returned:
ansible-vault create foo.yml
Vault password: 
Confirm Vault password: 
ERROR: [Errno 2] No such file or directory

When running the encrypt command, on the other hand, it is able to encrypt the file.
Sadly, from the encrypted state, then running the edit command returns the usual '[Errno 2]' error.

Any help is greatly appreciated. Thank you :-)

Michael DeHaan

unread,
Jun 17, 2014, 3:14:23 PM6/17/14
to ansible...@googlegroups.com
Hmm, that's curious.

Do you have permissions on the current directories and such?

Anyway, 1.6.3 is the latest release version - let us know if the problem exists there.




--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ff5a2c81-b804-4ab8-9bd1-2fe30279a2e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patrick S

unread,
Jun 17, 2014, 6:04:29 PM6/17/14
to ansible...@googlegroups.com
Hi,

It turns out that when I echo'd $EDITOR in Ubuntu nothing was aliased. Running EDITOR=/usr/bin/vim resolved the issue.

The error message put me on the wrong tracks in the sense that 'No file or directory' is not quite the same as something such as 'No default editor set'.

I hope this helps others.

Michael DeHaan

unread,
Jun 18, 2014, 11:44:54 AM6/18/14
to ansible...@googlegroups.com
Ok please make sure there's a github ticket filed on this one and we can look at better error reporting when EDITOR is not set.

Thanks!




--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages