Implement FreeBSD support for NGINX Open Source
Use FreeBSD ports instead of pkgng to fetch the latest version of NGINX Open Source
This commit is contained in:
parent
a231ea8a10
commit
70a2906268
@ -8,8 +8,19 @@
|
|||||||
- import_tasks: setup-suse.yml
|
- import_tasks: setup-suse.yml
|
||||||
when: ansible_os_family == "Suse"
|
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:
|
package:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: present
|
state: present
|
||||||
|
when: ansible_os_family != "FreeBSD"
|
||||||
|
notify: "(Handler: All OSs) Start NGINX"
|
||||||
|
|
||||||
|
- name: "(Install: FreeBSD) Install NGINX"
|
||||||
|
package:
|
||||||
|
name: nginx
|
||||||
|
state: present
|
||||||
|
when: ansible_os_family == "FreeBSD"
|
||||||
notify: "(Handler: All OSs) Start NGINX"
|
notify: "(Handler: All OSs) Start NGINX"
|
||||||
|
10
tasks/opensource/setup-freebsd.yml
Normal file
10
tasks/opensource/setup-freebsd.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user