Hi,
I have a number of different inventory like the following. Each inventory
will have variables for different usernames & passwords
all:
children:
A:
hosts:
minion1:
ansible_host: 10.134.47.102
minion2:
ansible_host: 10.134.47.103
minion3:
ansible_host: 10.134.47.104
vars:
username: someuser
password: somepassword
ansible_ssh_user: someotheruser
ansible_ssh_pass: someotherpassword
Instead of including the variables here is there a way to pass a separate
encrypted file?
ansible-playbook playbook-create-template.yml -i inventory.yml
joes-secrets.yaml
Or is there a cleaner way to use Vault and just have placeholder in the
inventory like {{ VAULT_JOES_PASSWORD }}
If so, how best to create the vault without calling ansible-vault
encrypt_string password123 --ask-vault-pass for each individual username &
password?
--
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/3c872d25-dd58-457a-b840-28fcbffc0f41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.