File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 8
8
- import_tasks : setup-suse.yml
9
9
when : ansible_os_family == "Suse"
10
10
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"
12
15
package :
13
16
name : nginx
14
17
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"
15
26
notify : " (Handler: All OSs) Start NGINX"
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments