Hi all, We have a role var defined for every role like bellow :
# roles/db/vars/main.yml : role : db # roles/web/vars/main.yml : role : web # roles/app/vars/main.yml : role : app We need to have this var a specific "config :" line in a configuration file in a way that will be the same if we run 1 single role on a host or all roles : if we only run the db role the file should be : # /etc/file.conf : config: role : db if we run all roles on the host the file should look like : # /etc/file.conf : config: role : db, role: web, role:app This might look simple but I'm having a hard time to code the logic in Ansible.. any ideas ? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7a8ee5f0-dee6-466f-a5ac-ff4d1e6283be%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
