add3bfba0b
The get_url module has python 2.7 dependencies. This causes errors on distros that have strict python 2.6 dependencies. Replacing the get_url module with a hardcoded code block using the blockinfile module circumvents these errors.
20 lines
555 B
YAML
20 lines
555 B
YAML
---
|
|
- 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" }
|