Skip to content

Commit

Permalink
#6 Change build folder in nginx-old role as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose committed Nov 16, 2017
1 parent 7994239 commit 6646e7d
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions tests/roles/nginx-old/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,40 @@
tags:
skip_ansible_lint

- name: NGINX | Create build folder
file:
path: /nginxbuild
state: directory

- name: Download headers-more module
get_url:
url: https://github.com/openresty/headers-more-nginx-module/archive/v{{ headers_more_version }}.tar.gz
dest: /tmp
dest: /nginxbuild
validate_certs: no

- name: Untar headers-more
unarchive:
copy: no
src: /tmp/headers-more-nginx-module-{{ headers_more_version }}.tar.gz
dest: /tmp
src: /nginxbuild/headers-more-nginx-module-{{ headers_more_version }}.tar.gz
dest: /nginxbuild

- name: Download nginx
get_url:
url: http://nginx.org/download/nginx-{{ nginx_old_version }}.tar.gz
dest: /tmp
dest: /nginxbuild

- name: Untar nginx
unarchive:
copy: no
src: /tmp/nginx-{{ nginx_old_version }}.tar.gz
dest: /tmp
src: /nginxbuild/nginx-{{ nginx_old_version }}.tar.gz
dest: /nginxbuild

# - name: Install nginx
# command: "chdir=/tmp/nginx-{{ nginx_old_version }} {{item}}"
# command: "chdir=/nginxbuild/nginx-{{ nginx_old_version }} {{item}}"
# with_items:
# - ./configure
# --prefix=/usr
# --add-module=/tmp/headers-more-nginx-module-{{ headers_more_version }}
# --add-module=/nginxbuild/headers-more-nginx-module-{{ headers_more_version }}
# --conf-path={{ nginx_conf }}
# --error-log-path={{ nginx_err }}
# --http-log-path={{ nginx_acc }}
Expand All @@ -50,21 +55,21 @@
# skip_ansible_lint

- name: NGINX | Configure install
command: ./configure --prefix=/usr --add-module=/tmp/headers-more-nginx-module-{{ headers_more_version }} --conf-path={{ nginx_conf }} --error-log-path={{ nginx_err }} --http-log-path={{ nginx_acc }} --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock
command: ./configure --prefix=/usr --add-module=/nginxbuild/headers-more-nginx-module-{{ headers_more_version }} --conf-path={{ nginx_conf }} --error-log-path={{ nginx_err }} --http-log-path={{ nginx_acc }} --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock
args:
chdir: /tmp/nginx-{{ nginx_old_version }}
chdir: /nginxbuild/nginx-{{ nginx_old_version }}
tags:
skip_ansible_lint

- name: NGINX | Make
make:
chdir: /tmp/nginx-{{ nginx_old_version }}
chdir: /nginxbuild/nginx-{{ nginx_old_version }}
tags:
skip_ansible_lint

- name: NGINX | Make install
make:
chdir: /tmp/nginx-{{ nginx_old_version }}
chdir: /nginxbuild/nginx-{{ nginx_old_version }}
target: install
tags:
skip_ansible_lint
Expand Down

0 comments on commit 6646e7d

Please sign in to comment.