Anna Sirota
f15e0cdabb
Adding response times to access logs in a format already supported by Vector. See https://master.vector.dev/docs/reference/vrl/functions/#parse_nginx_log and https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/log-format/ for more information.
22 lines
531 B
YAML
22 lines
531 B
YAML
---
|
|
- hosts: https
|
|
gather_facts: no
|
|
become: yes
|
|
roles: [common]
|
|
|
|
tasks:
|
|
- import_tasks: common/tasks/nginx/add_upstreaminfo_log_format.yaml
|
|
|
|
- name: Copying nginx config
|
|
template:
|
|
src: templates/nginx/https.conf
|
|
dest: "{{ nginx_conf_dir }}/sites-available/{{ service_name }}.conf"
|
|
|
|
- import_tasks: common/tasks/nginx/enable_site.yaml
|
|
vars:
|
|
config_file: "{{ service_name }}.conf"
|
|
|
|
- import_tasks: common/tasks/nginx/get_certificate.yaml
|
|
notify:
|
|
- test nginx
|