ansible include Ansible include tasks Apply role tags to all tasks in role: main.yml - include_tasks: file: tasks.yml apply: tags: - nginx when: nginx is defined and (nginx|bool) tags: - nginx task.yml contains all tasks for role.