--- - name: Ensure mandatory variables are configured assert: that: "{{ item }} is defined" fail_msg: "You must define the '{{ item }}' variable" with_items: - add_users_user_accounts - name: Include resource variables include_vars: "{{ add_users_user_accounts }}" tags: # Note(d1): we already load in converge.yml so skip here - molecule-notest # Note(d1): Done in this way because https://stackoverflow.com/a/39041069 - name: Include user addition tasks include: users.yml user={{ item }} with_items: "{{ members }}"