Allow overriding of nginx_vhost_path and nginx_default_vhost_path.

pull/116/head
Armando Lüscher 7 years ago
parent da2ec60144
commit a343a146bd
No known key found for this signature in database
GPG Key ID: 3D71085D14920359
  1. 10
      tasks/main.yml
  2. 4
      vars/Archlinux.yml
  3. 4
      vars/Debian.yml
  4. 4
      vars/FreeBSD.yml
  5. 4
      vars/OpenBSD.yml
  6. 4
      vars/RedHat.yml

@ -3,6 +3,16 @@
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"
- name: Define nginx_vhost_path.
set_fact:
nginx_vhost_path: "{{ __nginx_vhost_path }}"
when: nginx_vhost_path is not defined
- name: Define nginx_default_vhost_path.
set_fact:
nginx_default_vhost_path: "{{ __nginx_default_vhost_path }}"
when: nginx_default_vhost_path is not defined
- name: Define nginx_user.
set_fact:
nginx_user: "{{ __nginx_user }}"

@ -4,6 +4,6 @@ nginx_conf_path: /etc/nginx/conf.d
nginx_conf_file_path: /etc/nginx/nginx.conf
nginx_mime_file_path: /etc/nginx/mime.types
nginx_pidfile: /run/nginx.pid
nginx_vhost_path: /etc/nginx/sites-enabled
nginx_default_vhost_path: /etc/nginx/sites-enabled/default
__nginx_vhost_path: /etc/nginx/sites-enabled
__nginx_default_vhost_path: /etc/nginx/sites-enabled/default
__nginx_user: "http"

@ -4,6 +4,6 @@ nginx_conf_path: /etc/nginx/conf.d
nginx_conf_file_path: /etc/nginx/nginx.conf
nginx_mime_file_path: /etc/nginx/mime.types
nginx_pidfile: /run/nginx.pid
nginx_vhost_path: /etc/nginx/sites-enabled
nginx_default_vhost_path: /etc/nginx/sites-enabled/default
__nginx_vhost_path: /etc/nginx/sites-enabled
__nginx_default_vhost_path: /etc/nginx/sites-enabled/default
__nginx_user: "www-data"

@ -4,6 +4,6 @@ nginx_conf_path: /usr/local/etc/nginx/conf.d
nginx_conf_file_path: /usr/local/etc/nginx/nginx.conf
nginx_mime_file_path: /usr/local/etc/nginx/mime.types
nginx_pidfile: /var/run/nginx.pid
nginx_vhost_path: /usr/local/etc/nginx/sites-enabled
nginx_default_vhost_path: /usr/local/etc/nginx/sites-enabled/default
__nginx_vhost_path: /usr/local/etc/nginx/sites-enabled
__nginx_default_vhost_path: /usr/local/etc/nginx/sites-enabled/default
__nginx_user: "www"

@ -4,7 +4,7 @@ nginx_conf_path: /etc/nginx/conf.d
nginx_conf_file_path: /etc/nginx/nginx.conf
nginx_mime_file_path: /etc/nginx/mime.types
nginx_pidfile: /var/run/nginx.pid
nginx_vhost_path: /etc/nginx/sites-enabled
nginx_default_vhost_path: /etc/nginx/sites-enabled/default
__nginx_vhost_path: /etc/nginx/sites-enabled
__nginx_default_vhost_path: /etc/nginx/sites-enabled/default
nginx_package_name: "nginx--"
__nginx_user: "www"

@ -4,6 +4,6 @@ nginx_conf_path: /etc/nginx/conf.d
nginx_conf_file_path: /etc/nginx/nginx.conf
nginx_mime_file_path: /etc/nginx/mime.types
nginx_pidfile: /var/run/nginx.pid
nginx_vhost_path: /etc/nginx/conf.d
nginx_default_vhost_path: /etc/nginx/conf.d/default.conf
__nginx_vhost_path: /etc/nginx/conf.d
__nginx_default_vhost_path: /etc/nginx/conf.d/default.conf
__nginx_user: "nginx"