Merge pull request #33 from nginxinc/(feature)/implement-oss-freebsd

Implement FreeBSD support for NGINX Open Source
This commit is contained in:
Alessandro Fael Garcia 2018-05-09 15:09:33 -07:00 committed by GitHub
commit aef307f5a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View File

@ -8,8 +8,19 @@
- import_tasks: setup-suse.yml
when: ansible_os_family == "Suse"
- name: "(Install: All OSs) Install NGINX"
- import_tasks: setup-freebsd.yml
when: ansible_os_family == "FreeBSD"
- name: "(Install: Debian/Ubuntu/CentOS/RedHat) Install NGINX"
package:
name: nginx
state: present
when: ansible_os_family != "FreeBSD"
notify: "(Handler: All OSs) Start NGINX"
- name: "(Install: FreeBSD) Install NGINX"
portinstall:
name: nginx
state: present
when: ansible_os_family == "FreeBSD"
notify: "(Handler: All OSs) Start NGINX"

View File

@ -0,0 +1,10 @@
---
- name: "(Install: FreeBSD) Fetch Ports"
command: portsnap fetch --interactive
args:
creates: /var/db/portsnap/INDEX
- name: "(Install: FreeBSD) Extract Ports"
command: portsnap extract
args:
creates: /usr/ports