From 6646e7d3bc2def5fea48c250d73d7a5c93ca651c Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 16 Nov 2017 17:32:44 +0100 Subject: [PATCH] #6 Change build folder in nginx-old role as well --- tests/roles/nginx-old/tasks/main.yml | 29 ++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/tests/roles/nginx-old/tasks/main.yml b/tests/roles/nginx-old/tasks/main.yml index 4729d5e..c6663a2 100644 --- a/tests/roles/nginx-old/tasks/main.yml +++ b/tests/roles/nginx-old/tasks/main.yml @@ -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 }} @@ -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