Skip to content
Snippets Groups Projects
Commit d0127a60 authored by nimrod's avatar nimrod
Browse files

- Cleaner OpenBSD package installation.

parent c5d9d748
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@
that:
- ansible_os_family in aliases_file
- ansible_os_family in nginx_user
- ansible_pkg_mgr != 'openbsd_pkg' or ansible_distribution_version in nginx_openbsd_pkg
- name: Check if dhparams file exists
stat:
......@@ -23,7 +22,7 @@
- name: pkg install
when: ansible_pkg_mgr == 'openbsd_pkg'
openbsd_pkg:
name: '{{ nginx_openbsd_pkg[ansible_distribution_version] }}'
name: nginx%1
state: present
- name: Alias emails to root
......
---
# vars file for nginx
nginx_openbsd_pkg:
'5.5': nginx-1.5.7
'5.6': nginx-1.5.7p3
'5.7': nginx-1.7.10
'5.8': nginx-1.9.3p3
'5.9': nginx-1.9.10
'6.0': nginx-1.10.1
aliases_file:
OpenBSD: /etc/mail/aliases
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment