- hosts: ansible-1 tasks: - name: Install and launch httpd yum: name: httpd state: present update_cache: yes - name: Set https systemctl enable service: name: httpd state: started enabled: yes - name: Copy static web page copy: src: index.html dest: /var/www/html/index.html mode: 0444 - name: Configure firewalld firewalld: service: http permanent: yes state: enabled immediate: yes