diff --git a/README.md b/README.md index 9437efb..125f7f2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/codeenigma/ce-vm.svg?branch=8.x)](https://travis-ci.org/codeenigma/ce-vm.svg?branch=8.x) +[![Build Status](https://travis-ci.com/codeenigma/ce-vm.svg?branch=8.x)](https://travis-ci.com/codeenigma/ce-vm.svg?branch=8.x) # Docker based local web development stack Spins up a dev environment using Docker containers managed by Vagrant and configured with Ansible. diff --git a/ansible/cli.yml b/ansible/cli.yml index 43352b5..9ff2360 100644 --- a/ansible/cli.yml +++ b/ansible/cli.yml @@ -13,6 +13,7 @@ - { role: unison, when: volume_type == 'unison' } - { role: php-cli } - { role: xdebug, php_build_type: cli } + - { role: gmp, php_build_type: cli } - { role: blackfire } - { role: rsyslog_client } - { role: postfix } diff --git a/ansible/fpm.yml b/ansible/fpm.yml index 91ce779..bfa4eac 100644 --- a/ansible/fpm.yml +++ b/ansible/fpm.yml @@ -15,6 +15,7 @@ - { role: rsyslog_client } - { role: php-fpm } - { role: xdebug, php_build_type: fpm } + - { role: gmp, php_build_type: fpm } - { role: blackfire } - { role: postfix } diff --git a/ansible/roles/gmp/tasks/main.yml b/ansible/roles/gmp/tasks/main.yml new file mode 100644 index 0000000..4188cfc --- /dev/null +++ b/ansible/roles/gmp/tasks/main.yml @@ -0,0 +1,11 @@ +--- + +- name: Install gmp library. + apt: + name: [ "php{{ php_version }}-gmp" ] + state: present + +- name: Enable gmp extension + lineinfile: + path: '/etc/php/{{ php_version }}/{{ php_build_type }}/conf.d/20-gmp.ini' + line: 'extension=gmp.so'