ansible-role-nginx/tasks/modules/install-perl.yml
2018-02-09 12:00:58 -08:00

20 lines
518 B
YAML

---
- name: "(Install: All OSs) Install Open Source NGINX Perl Module"
package:
name: nginx-module-perl
state: present
when: type == "opensource"
- name: "(Install: All OSs) Install NGINX Plus Perl Module"
package:
name: nginx-plus-module-perl
state: present
when: type == "plus"
- name: "(Setup: All NGINX) Load NGINX Perl Module"
lineinfile:
path: /etc/nginx/nginx.conf
insertbefore: BOF
line: load_module modules/ngx_http_perl.so;
notify: "(Handler: All OSs) Reload NGINX"