Hello,
let's suppose I have multiple groups of virtual guests, all are split to different environments and are running 2 kinds of applications but with different configurations.
In /etc/environment there env variables APPENV and APPNAME which contain belonging to env like APPENV=test,APPENV=stage,APPENV=dev,APPNAME=app1,APPNAME=app2 and so on.
There is one common role 'common' where all the provisioning and initial configuration tasks and files are stored (this works good).
I want to populate roles list in top main.yml playbook with registering these env variables as Ansible vars and use it in
roles:
- { common }
- { $appenv_$appname }
Is it normal or I do have to think of something different ?