Ansible Roles

How do i declare a global variable, so that it can be used for multiple roles? And how to use that variable in roles tasks?

you can try group_vars or vars declared in the playbook. https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html

Jonathan Lozada De La Matta on mobile

– 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 . To post to this group, send email to . To view this discussion on the web visit . For more options, visit .