Expand vars from a task before invoking