I want to specify different key for different host. but there are host in group production
. for eg. i have host-vars inventory file and group-vars inventory file.
inventoy/hostvars/host-01
secret-key: <>
inventory/group-vars/production
secret-key: <>
I want that if host is specified one should pick secret key from host file else from production.Is it possible in ansible. or what approach we can have to carry this task out
I tried to use tag but its adding extra variable while running playbook from command line