8baa94e736
Resolves #132
31 lines
940 B
YAML
31 lines
940 B
YAML
---
|
|
- name: "(Install: FreeBSD)"
|
|
block:
|
|
|
|
- name: "(Install: FreeBSD) Add NGINX Plus Repository"
|
|
blockinfile:
|
|
path: /etc/pkg/nginx-plus.conf
|
|
create: yes
|
|
block: |
|
|
nginx-plus: {
|
|
URL: pkg+https://plus-pkgs.nginx.com/freebsd/${ABI}/latest
|
|
ENABLED: yes
|
|
MIRROR_TYPE: SRV
|
|
}
|
|
|
|
- name: "(Install: FreeBSD) Verify NGINX Plus License"
|
|
blockinfile:
|
|
path: /usr/local/etc/pkg.conf
|
|
block: |
|
|
PKG_ENV: { SSL_NO_VERIFY_PEER: "1",
|
|
SSL_CLIENT_CERT_FILE: "/etc/ssl/nginx/nginx-repo.crt",
|
|
SSL_CLIENT_KEY_FILE: "/etc/ssl/nginx/nginx-repo.key" }
|
|
|
|
- name: "(Install: FreeBSD) Install nginx-plus{{ nginx_version | default('') }}"
|
|
pkgng:
|
|
name: "nginx-plus{{ nginx_version | default('') }}"
|
|
state: "{{ nginx_state }}"
|
|
notify: "(Handler: All OSs) Start NGINX"
|
|
|
|
when: ansible_system == "FreeBSD"
|