- hosts: [tel,edu] tasks: - name: install apache2 apt: name=apache2 - name: reload apache2 service: name=apache2 state=restarted