- name: Install httpd (apache) yum: name: - httpd state: present update_cache: yes - name: Start and enable httpd service service: name: httpd state: started enabled: yes - name: Allow http in firewalld firewalld: service: http permanent: yes state: enabled immediate: yes