--- # PHP CGI - name: Start PHP fastcgi service: name=php-fpm state=started enabled=true - name: Copy php.ini configuration template: src=php.ini dest=/etc/php.ini notify: restart php-fpm - name: Install APC shell: yes '' | pecl install apc; echo ''