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

Commit

Permalink
Merge pull request #69 from billyrayvalentine/master
Browse files Browse the repository at this point in the history
Adding support for openSUSE (User should still define a repo)
  • Loading branch information
jdauphant committed Oct 16, 2015
2 parents b3aaa0e + 981e41a commit da25d50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ nginx_ubuntu_pkg:
nginx_freebsd_pkg:
- nginx

nginx_suse_pkg:
- nginx

yum_epel_repo: epel
yum_base_repo: base

Expand All @@ -21,7 +24,7 @@ nginx_binary_name: "nginx"
nginx_service_name: "{{nginx_binary_name}}"
nginx_conf_dir: "{% if ansible_os_family == 'FreeBSD' %}/usr/local/etc/nginx{% else %}/etc/nginx{% endif %}"

nginx_user: "{% if ansible_os_family == 'RedHat' %}nginx{% elif ansible_os_family == 'Debian' %}www-data{% elif ansible_os_family == 'FreeBSD' %}www{% endif %}"
nginx_user: "{% if ansible_os_family == 'RedHat' or ansible_os_family == 'Suse' %}nginx{% elif ansible_os_family == 'Debian' %}www-data{% elif ansible_os_family == 'FreeBSD' %}www{% endif %}"
nginx_group: "{{nginx_user}}"

nginx_pid_file: '/var/run/{{nginx_service_name}}.pid'
Expand Down
5 changes: 5 additions & 0 deletions tasks/installation.packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@
when: ansible_os_family == "FreeBSD"
tags: [packages,nginx]

- name: Install the nginx packages
zypper: name={{ item }} state=present
with_items: nginx_suse_pkg
when: ansible_os_family == "Suse"
tags: [packages,nginx]

0 comments on commit da25d50

Please sign in to comment.