Vault in combination with a master-playbook

11 views
Skip to first unread message

A. Meier

unread,
Jun 28, 2019, 4:22:08 AM6/28/19
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages