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

Commit

Permalink
Fix directory user/group on FreeBSD (#195)
Browse files Browse the repository at this point in the history
* Fix directory user/group on FreeBSD

* Remove unecessary file permissions
  • Loading branch information
tolbrino authored and jdauphant committed Nov 20, 2017
1 parent 4b72d6e commit 2d04bb8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ nginx_log_user: "{% if ansible_os_family == 'Debian' %}root{% else %}{{nginx_use
nginx_log_group: "{% if ansible_os_family == 'Debian' %}adm{% else %}{{nginx_group}}{% endif %}"
nginx_error_log_level: "error"

nginx_conf_user: root
nginx_conf_group: root

nginx_extra_root_params: []
nginx_events_params:
- worker_connections {% if nginx_max_clients is defined %}{{nginx_max_clients}}{% else %}512{% endif %}
Expand Down
2 changes: 0 additions & 2 deletions tasks/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
template:
src: auth_basic.j2
dest: "{{ nginx_conf_dir }}/auth_basic/{{ item.key }}"
owner: root
group: "{{ nginx_group }}"
mode: 0750
with_dict: "{{ nginx_auth_basic_files }}"

Expand Down
4 changes: 2 additions & 2 deletions tasks/ensure-dirs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
file:
path: "{{nginx_conf_dir}}/{{ item }}"
state: directory
owner: root
group: root
owner: "{{ nginx_conf_user }}"
group: "{{ nginx_conf_group }}"
mode: 0755
with_items:
- "sites-available"
Expand Down
1 change: 1 addition & 0 deletions vars/FreeBSD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
nginx_conf_dir: /usr/local/etc/nginx
nginx_user: www
nginx_sites_default_root: /usr/local/www/nginx-dist
nginx_conf_group: wheel

0 comments on commit 2d04bb8

Please sign in to comment.