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
From: [EMAIL PROTECTED] on behalf of Divyank Gupta <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2019 5:52 AM
To: Ansible Project
Subject: [ansible-project] 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?
To post to this group, send email to [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>.
To post to this group, send email to [EMAIL PROTECTED].