You can use pre_tasks to make sure that some roles are performed before the role and post_tasks to make sure that some tasks are performed after the role is applied. Therefore, changing tasks to pre_tasks will fix the problem.
- hosts: cmservers pre_tasks: - include_vars: /var/cm/local/ansible/vars/cmusers.yml - debug: var=users roles: - ansible-users-master
You can learn more about documentation in more detail.
source share