move tasks definition to main.yml