---
- hosts: testhost
  gather_facts: false
  tasks:
    - import_tasks:
        file: import_tasks.yml
        apply:
          tags:
            - foo
      tags:
        - always

    - assert:
        that:
          - include_tasks_result is defined
      tags:
        - always

    - import_role:
        name: import_role
        apply:
          tags:
            - foo
      tags:
        - always

    - assert:
        that:
          - include_role_result is defined
      tags:
        - always
