Skip to content

Commit aef307f

Browse files
authored
Merge pull request #33 from nginxinc/(feature)/implement-oss-freebsd
Implement FreeBSD support for NGINX Open Source
2 parents a231ea8 + ea6de99 commit aef307f

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

tasks/opensource/install-oss.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,19 @@
88
- import_tasks: setup-suse.yml
99
when: ansible_os_family == "Suse"
1010

11-
- name: "(Install: All OSs) Install NGINX"
11+
- import_tasks: setup-freebsd.yml
12+
when: ansible_os_family == "FreeBSD"
13+
14+
- name: "(Install: Debian/Ubuntu/CentOS/RedHat) Install NGINX"
1215
package:
1316
name: nginx
1417
state: present
18+
when: ansible_os_family != "FreeBSD"
19+
notify: "(Handler: All OSs) Start NGINX"
20+
21+
- name: "(Install: FreeBSD) Install NGINX"
22+
portinstall:
23+
name: nginx
24+
state: present
25+
when: ansible_os_family == "FreeBSD"
1526
notify: "(Handler: All OSs) Start NGINX"

tasks/opensource/setup-freebsd.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
- name: "(Install: FreeBSD) Fetch Ports"
3+
command: portsnap fetch --interactive
4+
args:
5+
creates: /var/db/portsnap/INDEX
6+
7+
- name: "(Install: FreeBSD) Extract Ports"
8+
command: portsnap extract
9+
args:
10+
creates: /usr/ports

0 commit comments

Comments
 (0)