---
- name: Install required dependencies.
  yum: "name={{ item }} state=installed"
  with_items:
    - curl
    - python-pycurl
    - unzip
    - make
    - gcc

- name: Enable remi repo for MySQL.
  set_fact: mysql_enablerepo="remi"
  when: mysql_enablerepo is not defined or mysql_enablerepo == ""

- name: Define php_xhprof_html_dir.
  set_fact:
    php_xhprof_html_dir: "/usr/share/pear/xhprof_html"
  when: php_xhprof_html_dir is not defined
  tags: ['webserver']