I am new in Ansible and need some help. I am in need of segregating my inventory file (which will change continuously based on another script output) with credential file. However Ansible username, password and admin password will be same or static. I want to create a group variable file to store credential and that should be encrypted using vault.
Can you give some direction to hook my group variable file to inventory file in Ansible playbook
I am new in Ansible and need some help. I am in need of segregating my inventory file (which will change continuously
based on another script output) with credential file. However Ansible username, password and admin password will be same
or static. I want to create a group variable file to store credential and that should be encrypted using vault.
Can you give some direction to hook my group variable file to inventory file in Ansible playbook
You can have separate files for your "main" inventory and group variables.
Let's say your inventory is "production", you can set it up like that:
production/production.yml => "main" inventory
production/group_vars/mygroup.yml => contains group variables