--- - debug: msg: "Warning: empty 'admin_users' variable, tasks will be skipped!" when: admin_users == {} - include: admin_user.yml vars: user: "{{ item.value }}" with_dict: "{{ admin_users }}" when: admin_users != {}