Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for openSUSE (User should still define a repo) #69

Merged
merged 1 commit into from
Oct 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]