Skip to content

Commit

Permalink
only remove static site config files, move slash out of var def
Browse files Browse the repository at this point in the history
  • Loading branch information
acozine committed Oct 5, 2023
1 parent 243fce1 commit aae6e9c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion roles/nginxplus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ nginx_main_upload_dest: /etc/nginx/
# Upload HTTP NGINX configuration files.
nginx_http_upload_enable: false
nginx_http_upload_src: conf/http/*.conf
nginx_http_upload_dest: /etc/nginx/conf.d/
nginx_http_upload_dest: /etc/nginx/conf.d
# Upload Stream NGINX configuration files.
nginx_stream_upload_enable: false
nginx_stream_upload_src: conf/stream/*.conf
Expand Down
5 changes: 2 additions & 3 deletions roles/nginxplus/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ nginx_unit_modules: null
# Use a list of paths you wish to remove.
# Default is false.
nginx_cleanup_config: false
nginx_cleanup_config_path:
- /etc/nginx/conf.d
nginx_cleanup_config_path: "{{nginx_http_upload_dest}}/static/"

# add template files for library production and staging
nginx_template_upload_enable: false
Expand All @@ -117,7 +116,7 @@ nginx_main_upload_dest: /etc/nginx/
# Upload HTTP NGINX configuration files.
nginx_http_upload_enable: false
nginx_http_upload_src: conf/http/*.conf
nginx_http_upload_dest: /etc/nginx/conf.d/
nginx_http_upload_dest: /etc/nginx/conf.d
# Upload Stream NGINX configuration files.
nginx_stream_upload_enable: false
nginx_stream_upload_src: conf/stream/*.conf
Expand Down
2 changes: 1 addition & 1 deletion roles/nginxplus/tasks/conf/cleanup-config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: "Setup: Remove NGINX configuration files"
- name: "Setup: Remove NGINX static site config files"
file:
path: "{{ item }}"
state: absent
Expand Down
2 changes: 1 addition & 1 deletion roles/nginxplus/tasks/conf/upload-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
src: "{{ item }}"
# test path:
dest: "/tmp/static/"
# dest: "{{ nginx_http_upload_dest }}static/"
# dest: "{{ nginx_http_upload_dest }}/static/"
mode: 0755
backup: true
with_fileglob: "{{ nginx_http_upload_src }}"
Expand Down

0 comments on commit aae6e9c

Please sign in to comment.