Ended up using git-crypt instead.

https://github.com/AGWA/git-crypt/blob/master/INSTALL.md



On Friday, November 25, 2016 at 2:45:03 PM UTC, Asil Carlin wrote:
>
> Is this possible? Lookups will work on an un-encrytped file but the 
> following example on a vaulted file:
>
> root_passwd_hash: "{{ lookup('csvfile', 'root file=vault/pw_hash.csv' ) }}"
>
>
> Gives me:
>
> <propval type="astring" name="password" value="[]"/>
>
>
> Perhaps I'm going about this the wrong way? I'm using this in a jinja 
> template which has the following line:
>
> <propval type="astring" name="password" value="{{ 
> sol_ai_profile_user.root_passwd_hash | mandatory }}"/>
>
>
> It makes no difference if I provide the vault password on the command 
> line, in a file, or not bother at all. The play still runs but the var 
> never gets the lookup goodies.
>
>
> Master: ansible 2.1.1.0 
>
> jinja 2.8 
>
> Centos 7.2.1511 
>
> Python 2.7.5
>

-- 
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/75e61e42-b62b-4be1-9025-9727bef6b521%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to