---

# Install all php packages
- name: Install php-fpm
  yum: pkg={{ php_package }}-fpm state=present

- name: Ensure php-fpm is running now and on boot
  service: name=php-fpm state=started enabled=yes

- name: Install php packages
  yum: pkg={{ item }} state=present
  with_items:
    - "{{ php_package }}-cli"
    - "{{ php_package }}-common"
    - "{{ php_package }}-devel"
    - "{{ php_package }}-gd"
    - "{{ php_package }}-json"
    - "{{ php_package }}-mbstring"
    - "{{ php_package }}-mcrypt"
    - "{{ php_package }}-mysqlnd"
    - "{{ php_package }}-opcache"
    - "{{ php_package }}-pdo"
    - "{{ php_package }}-pear"
    - "{{ php_package }}-soap"
    - "{{ php_package }}-tidy"
    - "{{ php_package }}-pecl-imagick"
    #- "{{ php_package }}-pecl-memcache"
    #- "{{ php_package }}-pecl-uploadprogress"
    - "{{ php_package }}-xml"
    - "{{ php_package }}-xmlrpc"
    - "{{ php_package }}-pecl-apcu"

---

# Install all php packages
- name: Install php-fpm
  yum: pkg={{ php_package }}-fpm state=present

- name: Ensure php-fpm is running now and on boot
  service: name=php-fpm state=started enabled=yes

- name: Install php packages
  yum: pkg={{ item }} state=present
  with_items:
    - "{{ php_package }}-cli"
    - "{{ php_package }}-common"
    - "{{ php_package }}-devel"
    - "{{ php_package }}-gd"
    - "{{ php_package }}-json"
    - "{{ php_package }}-mbstring"
    - "{{ php_package }}-mcrypt"
    - "{{ php_package }}-mysqlnd"
    - "{{ php_package }}-opcache"
    - "{{ php_package }}-pdo"
    - "{{ php_package }}-pear"
    - "{{ php_package }}-soap"
    - "{{ php_package }}-tidy"
    - "{{ php_package }}-pecl-imagick"
    #- "{{ php_package }}-pecl-memcache"
    #- "{{ php_package }}-pecl-uploadprogress"
    - "{{ php_package }}-xml"
    - "{{ php_package }}-xmlrpc"
    - "{{ php_package }}-pecl-apcu"
    - "{{ php_package }}-bcmath"


Add bcmath to php7 defaults.
Add bcmath to php7 defaults.
