- name: Install and start Apache HHTPD hosts: web tasks: - name: httpd package is present yum: name: httpd state: present - name: correct html is present copy: src: files/index.html dest: /var/www/html/index.html - name: httpd is started service: name: httpd state: started enabled: true