Skip to content

Commit

Permalink
Added nginx support
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcclure committed Jun 13, 2017
1 parent 62e952d commit 08fbab2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions tasks/setup-Archlinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Ensure nginx is installed.
pacman:
name: "{{ nginx_package_name }}"
state: installed
9 changes: 9 additions & 0 deletions vars/Archlinux.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 08fbab2

Please sign in to comment.