"ansible-vault edit" with vi - how to force writing?

58 views
Skip to first unread message

Dick Visser

unread,
Aug 3, 2016, 11:36:53 AM8/3/16
to ansible...@googlegroups.com
Hi

I'm using "ansible-vault edit" to edit an encrypted vars file, using
the default editor, which is vi.
While working on the file, I routinely save it from vi (using ':w'),
but noticed that the changes were written to a temp file.
In order to actually update the real file, I have to quit vi.

Is there a way to make it behave more like vi, i.e. safe the file to
the actual location instead of temp?

Having to quit en start your editor on every change is kind of a nuisance.

Thanks!!

Dick



--
Dick Visser
Sr. System & Network Engineer
GÉANT

Want to join us? We're hiring: http://www.geant.org/jobs

Brian Coca

unread,
Feb 9, 2017, 10:24:33 PM2/9/17
to Ansible Project
No way currently, when you save from vi it is still unencrypted, only
when you quit does it take the file and encrypt it to replace the
original.


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages