Skip to content

Commit 4781a8f

Browse files
committed
Added mod_pagespeed
Fixed #23
1 parent 937fbf1 commit 4781a8f

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

etc/application.development.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ PROVISION:
44
systemUpdate: false
55

66
install:
7-
phpBlackfire: false
8-
phpXdebug: false
7+
phpBlackfire: false
8+
phpXdebug: false
9+
apacheModPagespeed: true
910

1011
WEB:
1112
vhost:

etc/application.production.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ PROVISION:
44
systemUpdate: true
55

66
install:
7-
phpBlackfire: false
8-
phpXdebug: false
7+
phpBlackfire: false
8+
phpXdebug: false
9+
apacheModPagespeed: false
910

1011
WEB:
1112
vhost:

provision/roles/boilerplate-main/tasks/bootstrap.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,6 @@
5353
- include: bootstrap/php.yml php_pool_conf="{{ php_pool_conf }}"
5454

5555
- include: bootstrap/web.apache.yml
56+
- include: bootstrap/web.apache.pagespeed.yml
57+
when: PROVISION.install.apacheModPagespeed is defined and PROVISION.install.apacheModPagespeed
5658
- include: bootstrap/web.nginx.yml
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
3+
- name: Download apache mod_pagespeed [Debian family]
4+
get_url:
5+
url: https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
6+
dest: /tmp/mod-pagespeed.deb
7+
when: ansible_os_family == 'Debian'
8+
9+
- name: Install apache mod_pagespeed [Debian family]
10+
apt:
11+
deb: /tmp/mod-pagespeed.deb
12+
when: ansible_os_family == 'Debian'
13+
14+
- name: Install apache mod_pagespeed [RedHat family]
15+
yum:
16+
name: https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
17+
state: present
18+
when: ansible_os_family == 'RedHat'

0 commit comments

Comments
 (0)