I'd consider using the new "ansible-vault view" command to view when you
don't want to edit -- it's new on the devel branch if not actually part of
1.8.

I don't remember :) ... but it may help and avoid writing the script.



On Tue, Dec 9, 2014 at 7:45 PM, Toshio Kuratomi <tkurat...@ansible.com>
wrote:
>
> I haven't used vault extensively so I've never had to dive into this
> before.  however, I think that either filters or pointing git at an
> external diff tool which you write a short wrapper to do the
> decryption are the ways to do this.  Doing some web searching I do
> notive that other people are using git's filters for similar
> transparent encryption and decryption operations.  For instance:
>
> https://www.agwa.name/projects/git-crypt/
>
> http://stackoverflow.com/questions/11575398/how-can-i-save-my-secret-keys-and-password-securely-in-my-version-control-system
>
> Sorry I don't have an out of the box recipe for you but it does seem
> doable with a bit of time and reading.
>
> -Toshio
>
> On Tue, Dec 9, 2014 at 8:26 AM, Damjan Georgievski <gdam...@gmail.com>
> wrote:
> > Now that we started using vault files for secret data, one of the
> problems
> > is that git diff on the vault files gives the whole file as changed
> > (understandably).
> > The trouble I have now is that I use git diff before I commit to double
> > check I didn't change something I didn't want to.
> >
> > Is there some trick that people are using to git diff encrypted files?
> >
> > --
> > 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/05816297-316c-48fb-b1a0-875202ef1fc6%40googlegroups.com
> .
> > 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 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/CAG9juEqz0BvLzEqmHTFzaw1XeXZNZq99a1L9SHjfETkMujpHOA%40mail.gmail.com
> .
> 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 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/CA%2BnsWgwJqeHCgprAYfAGhG9g2JG6tpAUMEBKWFe1VD3ZXrFgWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to