[infra] ansible_host= ansible_user= ansible_ssh_extra_args='-o StrictHostKeyChecking=no' @L:The entire entry after [infra] must be one long line. You can check whether this works by calling @LI:ansible -i hosts infra -m ping VM> cd roles VM> git clone https://github.com/bertvv/ansible-role-tftp bertvv.tftp VM> git clone https://github.com/bertvv/ansible-role-dhcp bertvv.dhcp - hosts: infra become: yes roles: - bertvv.dhcpd - bertvv.tftp ansible-playbook -i hosts infra.yml $ cd roles $ git clone https://github.com/nginxinc/ansible-role-nginx nginxinc.nginx inst.ks=http://172.23.48.31/kickstart/ks01-0c-42-a1-06-ab-ef.cfg