Added nginx support
This commit is contained in:
parent
62e952d116
commit
08fbab26bd
|
@ -9,7 +9,7 @@ nginx_yum_repo_enabled: true
|
|||
nginx_ppa_use: false
|
||||
nginx_ppa_version: stable
|
||||
|
||||
# The name of the nginx apt/yum package to install.
|
||||
# The name of the nginx package to install.
|
||||
nginx_package_name: "nginx"
|
||||
|
||||
nginx_conf_template: "nginx.conf.j2"
|
||||
|
|
|
@ -24,6 +24,9 @@
|
|||
- include: setup-OpenBSD.yml
|
||||
when: ansible_os_family == 'OpenBSD'
|
||||
|
||||
- include: setup-Archlinux.yml
|
||||
when: ansible_os_family == 'Archlinux'
|
||||
|
||||
# Vhost configuration.
|
||||
- include: vhosts.yml
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Ensure nginx is installed.
|
||||
pacman:
|
||||
name: "{{ nginx_package_name }}"
|
||||
state: installed
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
root_group: root
|
||||
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_user: "http"
|
Loading…
Reference in New Issue