# Pastebin E2rAJFZH httpd: pkg: - installed {% if grains['os'] == 'RedHat' or grains['os'] == 'Fedora' or grains['os'] == 'CentOS' %} - name: httpd {% elif grains['os'] == 'Ubuntu' %} - name: apache2 {% endif %} service: - running {% if grains['os'] == 'Ubuntu' %} - name: apache2 {% endif %} - enable: True - require: - pkg: httpd # apt-add multiverse cmd-multiverse: cmd.running: - name: | sudo apt-add-repository multiverse && sudo apt-get update {% if grains['os'] == 'Ubuntu' %} apache2-utils: pkg: - installed libapache2-mod-fastcgi: pkg: - installed {% endif %}