Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

Commit

Permalink
lp-nginx - Set default for nginx_users
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-mo committed Aug 27, 2017
1 parent 8d988ec commit 9442b7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lp-nginx/defaults/main.yml
Expand Up @@ -5,5 +5,8 @@ nginx_worker_processes: auto

nginx_pid: /var/run/nginx.pid

nginx_users: {}
# user: password

www_user: www-data
www_group: www-data
2 changes: 1 addition & 1 deletion lp-nginx/tasks/configure.yml
Expand Up @@ -19,7 +19,7 @@
src: htpasswd.j2
dest: /etc/nginx/htpasswd
notify: reload nginx
when: nginx_users is defined
when: nginx_users

- name: Nginx | Render Defaults
template:
Expand Down

0 comments on commit 9442b7d

Please sign in to comment.