Hi,

I am new to Ansible and have a questions about Vault in combination with a 
master-playbook.
In the role-initialsetup in the default/main.yml the content is encrypted 
and the playbook play's with these settings fine:
ansible-playbook --ask-vault-pass sites.yml --tags "role-initialsetup" 
--limit gonzales.net

But if I play the others roles like role-haproxy or role-java both will 
fail with the message:
"ERROR! Attempting to decrypt but no vault secrets found"

How to correct this? What I'm missing?



Content of sites.yml
---

- name: Configure app server(s)
  hosts: azure
  become: true
  become_user: root
  become_method: sudo
  gather_facts: yes

  roles:

    - { role: role-java, tags: role-java }
    - { role: role-haproxy, tags: role-haproxy }
    - { role: role-initialsetup, tags: role-initialsetup }



Kind regards,
Andreas

-- 
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/5e60524c-7af2-473c-ba62-5678b40e36a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to