How to set a variable using dynamic inventory using Ansible

I am looking for method to set a variable in ansible playbook using inventory information received from dynamic inventory.

For example if we have a sample playbook like

what is rds_mysql in this context? it is not clear that it is returned
as a hostvar/groupvar or something else