Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Commit

Permalink
Added uploadprogress install task to drupal role.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom Toogood committed Feb 15, 2016
1 parent 954892b commit fe000be
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ansible/roles/beetbox-drupal/tasks/uploadprogress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- name: Install uploadprogress PECL library.
pear:
name: pecl/uploadprogress
state: present

- name: Add php extension config for uploadprogress.
template:
src: uploadprogress.ini.j2
dest: "{{ php_extension_conf_path }}/uploadprogress.ini"
owner: root
group: root
force: yes
mode: 0644
notify: restart webserver
2 changes: 2 additions & 0 deletions ansible/roles/beetbox-drupal/templates/uploadprogress.ini.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
; activate and configurate for php uploadprogress module
extension=uploadprogress.so
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ drupal_makefile_path: /vagrant/drupal.make.yml
drupal_build_composer: no
drupal_composer_version: "8.x-dev"
drupal_composer_dependencies: []
drupal_uploadprogress_enable: no
4 changes: 4 additions & 0 deletions provisioning/ansible/roles/beetbox-drupal/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
# Add nginx conf.
- include: nginx.yml
when: beet_webserver == 'nginx'

# Install uploadprogress PECL library.
- include: uploadprogress.yml
when: drupal_uploadprogress_enable

0 comments on commit fe000be

Please sign in to comment.