Ended up using git-crypt instead.
https://github.com/AGWA/git-crypt
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/a0dfce2d-3777-44bc-bf62-1ca9d29a785b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.