You may want to check with "ansible-playbook -v ..." that ansible is
picking the correct .cfg file.

Richard

On 8 March 2018 at 10:49, JiElPe-Fr38 <6bery...@gmail.com> wrote:

> Dear all,
>
> I am "auto learning" ansible and currently try to understand how to use
> vault.
> To summarize things, I have created a vault.yml file in the vars
> directory, and included it in the main.yml task. Then, I put the vault
> password within a .vault_passwd file created at the same level than
> ansible.cfg.
>
> When I run :
> ansible-playbook with --vault-password-file .vault_passwd
>
> It is ok.
>
> So, I tried to put the vault password file path within ansible.cfg as
> follows :
> vault_password_file = .vault_passwd
>
> When running the playbook (without --vault-password-file ), it fails with
> :
> fatal: [ci-server]: FAILED! => {
>     "ansible_facts": {},
>     "ansible_included_var_files": [],
>     "changed": false,
>     "message": "Attempting to decrypt but no vault secrets found"
> }
>
> at the line were the vault.yml file is imported. So, it looks like if it
> does not find the vault password file to decrypt the vault file.
>
> I can't understand why, and have already tried with the aboslute path, or
> changing _ with -, just in case documentation had a typo... but without any
> success.
>
> If someone could have an idea to help, I would be glad.
>
> Have a nice day!
>
> J-L
>
> --
> 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/1029fe38-50d2-45ce-806c-b9097b9f2e7f%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/1029fe38-50d2-45ce-806c-b9097b9f2e7f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAAkoFGkS2gg2pjikWxbw_xdMKe5jv3%2BLuTf%3Dov%3DV4jjRqA7Q3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to