Skip to content

Commit

Permalink
Update modules when they have changed
Browse files Browse the repository at this point in the history
  • Loading branch information
David Farrington committed Apr 3, 2015
1 parent dfc47f9 commit 7791998
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
4 changes: 3 additions & 1 deletion tasks/modules/headers_more_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
get_url:
url: "{{nginx_headers_more_url}}"
dest: "/tmp/nginx-headers-more-module-{{nginx_headers_more_version}}.tar.gz"
register: nginx_headers_more_download

- name: Nginx | Modules | Unpack the headers_more_module source
command: tar -xvzf /tmp/nginx-headers-more-module-{{nginx_headers_more_version}}.tar.gz chdir=/tmp creates=/tmp/headers-more-nginx-module-{{nginx_headers_more_version}}

- name: Nginx | Modules | Copy the headers_more_module source folder
command: sudo cp -R /tmp/headers-more-nginx-module-{{nginx_headers_more_version}} /tmp/nginx_headers_more creates=/tmp/nginx_headers_more
command: sudo cp -R /tmp/headers-more-nginx-module-{{nginx_headers_more_version}} /tmp/nginx_headers_more
when: nginx_headers_more_download|changed
5 changes: 3 additions & 2 deletions tasks/modules/http_auth_request_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
get_url:
url: "{{nginx_auth_request_url}}"
dest: "/tmp/nginx-auth-request-module.tar.gz"
register: nginx_auth_request_download

- name: Nginx | Modules | Unpack the http_auth_request_module source
command: tar -xvzf /tmp/nginx-auth-request-module.tar.gz chdir=/tmp creates=/tmp/ngx_http_auth_request_module-{{nginx_auth_request_release}}

- name: Nginx | Modules | Copy the http_auth_request_module source folder
command: sudo cp -R /tmp/ngx_http_auth_request_module-{{nginx_auth_request_release}} /tmp/nginx_auth_request creates=/tmp/nginx_auth_request

command: sudo cp -R /tmp/ngx_http_auth_request_module-{{nginx_auth_request_release}} /tmp/nginx_auth_request
wheb: nginx_auth_request_download|changed
4 changes: 3 additions & 1 deletion tasks/modules/http_echo_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
get_url:
url: "{{nginx_echo_url}}"
dest: "/tmp/nginx-echo-module.tar.gz"
register: nginx_echo_download

- name: Nginx | Modules | Unpack the http_echo_module source
command: tar -xvzf /tmp/nginx-echo-module.tar.gz chdir=/tmp creates=/tmp/echo-nginx-module-{{nginx_echo_version}}

- name: Nginx | Modules | Copy the http_echo_module source folder
command: sudo cp -R /tmp/echo-nginx-module-{{nginx_echo_version}} /tmp/nginx_echo creates=/tmp/nginx_echo
command: sudo cp -R /tmp/echo-nginx-module-{{nginx_echo_version}} /tmp/nginx_echo
when: nginx_echo_download|changed
4 changes: 3 additions & 1 deletion tasks/modules/naxsi_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
get_url:
url: "{{nginx_naxsi_url}}"
dest: "/tmp/nginx-naxsi-module.tar.gz"
register: nginx_naxsi_download

- name: Nginx | Modules | Unpack the naxsi_module source
command: tar -xvzf /tmp/nginx-naxsi-module.tar.gz chdir=/tmp creates=/tmp/naxsi-{{nginx_naxsi_version}}

- name: Nginx | Modules | Copy the naxsi_module source folder
command: sudo cp -R /tmp/naxsi-{{nginx_naxsi_version}}/naxsi_src /tmp/nginx_naxsi creates=/tmp/nginx_naxsi
command: sudo cp -R /tmp/naxsi-{{nginx_naxsi_version}}/naxsi_src /tmp/nginx_naxsi
when: nginx_naxsi_download|changed

- name: Nginx | Modules | Make sure the naxsi_module configuration is up to date
copy:
Expand Down
2 changes: 1 addition & 1 deletion tasks/modules/ngx_pagespeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

- name: Nginx | Modules | Copy the ngx_pagespeed source folder
command: sudo cp -R /tmp/ngx_pagespeed-release-{{nginx_ngx_pagespeed_version}}-beta /tmp/ngx_pagespeed
when: ngx_pagespeed_download.changed
when: ngx_pagespeed_download|changed

- name: Nginx | Modules | Download the psol source
get_url:
Expand Down
5 changes: 4 additions & 1 deletion tasks/modules/upload_progress_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
get_url:
url: "{{nginx_upload_progress_url}}"
dest: "/tmp/nginx-upload-progress-module-{{nginx_upload_progress_version}}.tar.gz"
register: nginx_upload_progress_download

- name: Nginx | Modules | Unpack the upload_progress_module source
command: tar -xvzf /tmp/nginx-upload-progress-module-{{nginx_upload_progress_version}}.tar.gz chdir=/tmp creates=/tmp/nginx-upload-progress-module-{{nginx_upload_progress_version}}
when: nginx_upload_progress_download|changed

- name: Nginx | Modules | Copy the upload_progress_module source folder
command: sudo cp -R /tmp/nginx-upload-progress-module-{{nginx_upload_progress_version}} /tmp/nginx_upload_progress creates=/tmp/nginx_upload_progress
command: sudo cp -R /tmp/nginx-upload-progress-module-{{nginx_upload_progress_version}} /tmp/nginx_upload_progress
when: nginx_upload_progress_download|changed

- name: Nginx | Modules | Make sure the upload_progress_module configuration is updated
template:
Expand Down

0 comments on commit 7791998

Please sign in to comment.