Hi All,
I've a similar problem, but I want to load environment variable "ORACLE_HOME" based on the hostname since ORACLE_HOME is different for each server.
And, there are n number of hosts defined in inventory, which in turn assigned to groups like dev, sit, uat etc.
In my scenario, I'm passing env_name to playbook, which resolves hostnames and does the deployment on those servers. I don't want to keep separate playbook for each server due to different ORACLE_HOME.
I tried multiple ways to do it. But no luck.
Anyone aware, how it can be achieved?
Thanks,
Ashish Kumar