fixed creation of ansible_hosts file