Currently, I'm refactoring all jobs backup from different type of DBs (mongo, mysql, postgres) to ansible roles. The structure is below.
The thing here is different server have different DB's username, password, DB name. I don't want to use redundant jobs so I want to run different roles for different task with different variables. How can I achieve above demand with ansible, please let me know if you have any idea. Thank you very much.