merge/override variable from devices_role and tags variable file with netbox

Hi All,

im getting confused with the usage of dynamic inventories with netbox.

I had a playbook which is execute on server with a specific role:
ex:

- name: server_monit
  hosts: device_roles_server_monit
  roles:
    - role: role0
      tags: [role0]
    - role: role1
    - role: role2
      when: is_role_2 is defined

The variable is_role_2 is defined in tags_role_2 file in group_vars and there is a device_roles_server_monit in groups_vars as well.

But when i tag my server with role_2 in netbox, ansible didnt run the playbook and output an empty inventory. it didnt take in count the device_roles.

i tought there were a precedence with device_role before tags variable and just merge variable if both are retrieve from netbox.

Where im wrong ?