Skip to content

Commit

Permalink
Updated version, ngx_pagespeed urls and added http v2 module
Browse files Browse the repository at this point in the history
  • Loading branch information
lfrodrigues committed Jan 15, 2018
1 parent b469b10 commit f978320
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
6 changes: 4 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ nginx_source_modules_included:
ipv6_module: "--with-ipv6"
http_real_ip_module: "--with-http_realip_module"
http_spdy_module: "--with-http_spdy_module"
http_v2_module: "--with-http_v2_module"
http_perl_module: "--with-http_perl_module"
naxsi_module: "--add-module=/tmp/naxsi-{{nginx_naxsi_version}}/naxsi_src"
ngx_pagespeed: "--add-module=/tmp/ngx_pagespeed-release-{{nginx_ngx_pagespeed_version}}-beta"
ngx_pagespeed: "--add-module=/tmp/incubator-pagespeed-ngx-{{nginx_ngx_pagespeed_version}}"
http_geoip_module: "--with-http_geoip_module"

nginx_source_modules_excluded:
Expand Down Expand Up @@ -167,7 +168,8 @@ nginx_naxsi_version: "0.53"
nginx_naxsi_url: "https://github.com/nbs-system/naxsi/archive/{{nginx_naxsi_version}}.tar.gz"

# ngx_pagespeed_module configuration
nginx_ngx_pagespeed_version: 1.9.32.4
nginx_ngx_pagespeed_version: 1.12.34.2-stable
nginx_ngx_pagespeed_psol_version: 1.12.34.2-x64

# OpenSSL configuration
openssl_version: "1.0.2h"
3 changes: 3 additions & 0 deletions tasks/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
- include: modules/http_spdy_module.yml
when: nginx_source_modules_included.http_spdy_module is defined

- include: modules/http_v2_module.yml
when: nginx_source_modules_included.http_v2_module is defined

- include: modules/naxsi_module.yml
when: nginx_source_modules_included.naxsi_module is defined

Expand Down
4 changes: 4 additions & 0 deletions tasks/modules/http_v2_module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# file: nginx/tasks/modules/http_v2_module.yml
# configure flag: --with-http_v2_module

# no contents
16 changes: 8 additions & 8 deletions tasks/modules/ngx_pagespeed.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# file: nginx/tasks/modules/ngx_pagespeed.yml
# configure flag: --add-module=/tmp/ngx_pagespeed-release-{{nginx_ngx_pagespeed_version}}-beta
# configure flag: --add-module=/tmp/incubator-pagespeed-ngx-{{nginx_ngx_pagespeed_version}}

- name: Nginx | Modules | Make sure the dependences are installed
apt:
Expand All @@ -11,22 +11,22 @@

- name: Nginx | Modules | Download the ngx_pagespeed source
get_url:
url: "https://github.com/pagespeed/ngx_pagespeed/archive/release-{{nginx_ngx_pagespeed_version}}-beta.tar.gz"
url: "https://github.com/apache/incubator-pagespeed-ngx/archive/v{{nginx_ngx_pagespeed_version}}.tar.gz"
dest: "/tmp/ngx_pagespeed_module.tar.gz"

- name: Nginx | Modules | Unpack the ngx_pagespeed source
command: tar -xvzf /tmp/ngx_pagespeed_module.tar.gz
args:
chdir: /tmp
creates: "/tmp/ngx_pagespeed-release-{{nginx_ngx_pagespeed_version}}-beta"
creates: "/tmp/incubator-pagespeed-ngx-{{nginx_ngx_pagespeed_version}}"

- name: Nginx | Modules | Download the psol source
get_url:
url: "https://dl.google.com/dl/page-speed/psol/{{nginx_ngx_pagespeed_version}}.tar.gz"
dest: "/tmp/ngx_pagespeed-release-{{nginx_ngx_pagespeed_version}}-beta/psol.tar.gz"
url: "https://dl.google.com/dl/page-speed/psol/{{nginx_ngx_pagespeed_psol_version}}.tar.gz"
dest: "/tmp/incubator-pagespeed-ngx-{{nginx_ngx_pagespeed_version}}/psol.tar.gz"

- name: Nginx | Modules | Unpack the psol source
command: "tar -xvzf /tmp/ngx_pagespeed-release-{{nginx_ngx_pagespeed_version}}-beta/psol.tar.gz"
command: "tar -xvzf /tmp/incubator-pagespeed-ngx-{{nginx_ngx_pagespeed_version}}/psol.tar.gz"
args:
chdir: "/tmp/ngx_pagespeed-release-{{nginx_ngx_pagespeed_version}}-beta"
creates: "/tmp/ngx_pagespeed-release-{{nginx_ngx_pagespeed_version}}-beta/psol"
chdir: "/tmp/incubator-pagespeed-ngx-{{nginx_ngx_pagespeed_version}}"
creates: "/tmp/incubator-pagespeed-ngx-{{nginx_ngx_pagespeed_version}}/psol"

0 comments on commit f978320

Please sign in to comment.