- name: FreePBX - Install dependencies
  package:
    name:
      - wget
      - git 
      - unixodbc     # for Asterisk CDR (Call Detail Records)
      - sudo         # required by FreePBX install script
      - net-tools    # required by FWConsole (command-line utility, that controls FreePBX)
      - cron         # required by FreePBX UCP package (User Control Panel)
      - sox          # required for CDR web-playback
      - php 
      - php-pear
      - php-cgi
      - php-common
      - php-curl
      - php-mbstring
      - php-gd
      - php-mysql
      - php-gettext
      - php-bcmath
      - php-zip
      - php-xml
      - php-imap
      - php-json
      - php-snmp 
      - php-fpm
      - libapache2-mod-php
      - python-mysqldb        # https://github.com/Yannik/ansible-role-freepbx/blob/master/tasks/freepbx.yml#L33
      - libapache2-mpm-itk    # To serve FreePBX through a VirtualHost as asterisk user
    state: latest
