File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 2222- name : Nginx | Unpack the compressed Nginx source
2323 command : tar -xvzf /tmp/nginx-{{nginx_source_version}}.tar.gz chdir=/tmp creates=/tmp/nginx-{{nginx_source_version}}/README
2424
25+ - name : Nginx | Write out the version and flags used for the build
26+ template :
27+ src : .nginx_compilation_flags.j2
28+ dest : " {{nginx_dir}}/.nginx_compilation_flags"
29+ register : nginx_flags
30+
31+ - name : Kill Nginx (old threads)
32+ command : pkill nginx
33+ ignore_errors : yes
34+ when : nginx_flags.changed
35+
2536- name : Nginx | Compile the Nginx source
2637 shell : >
2738 cd /tmp/nginx-{{nginx_source_version}} &&
2839 ./configure {{nginx_source_configure_flags}} &&
2940 make &&
3041 make install
42+ when : nginx_flags.changed
3143
3244- name : Nginx | Update the symbolic link to the nginx install
3345 file :
Original file line number Diff line number Diff line change 1+ # This file is used to track the nginx build flags, DO NOT CHANGE MANUALLY
2+ {{nginx_source_version}}
3+ {{nginx_source_configure_flags}}
You can’t perform that action at this time.
0 commit comments