add condition to task/main.yml