Modify task.sh to use ANSIBLE_HOSTS variable