From 2caa6878ab74b52a3bf65f6821008533957a7281 Mon Sep 17 00:00:00 2001 From: Hadrien Patte Date: Fri, 24 May 2024 21:46:01 +0200 Subject: [PATCH] Update nginx-datadog to 1.1.0 --- roles/mediaserver/defaults/main.yml | 3 +++ roles/mediaserver/tasks/datadog.yml | 2 +- roles/mediaserver/tasks/nginx.yml | 9 ++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/roles/mediaserver/defaults/main.yml b/roles/mediaserver/defaults/main.yml index 79a4c5a..86c90ae 100644 --- a/roles/mediaserver/defaults/main.yml +++ b/roles/mediaserver/defaults/main.yml @@ -50,6 +50,9 @@ themepark: theme: organizr version: 1.16.2 +nginx_datadog: + version: 1.1.0 + default: version: latest env: prod diff --git a/roles/mediaserver/tasks/datadog.yml b/roles/mediaserver/tasks/datadog.yml index 85bdbf2..a6361ae 100644 --- a/roles/mediaserver/tasks/datadog.yml +++ b/roles/mediaserver/tasks/datadog.yml @@ -162,4 +162,4 @@ - RPi.bme280 state: present executable: /opt/datadog-agent/embedded/bin/pip - notify: restart datadog-agent + notify: restart datadog-agent # noqa name[casing] diff --git a/roles/mediaserver/tasks/nginx.yml b/roles/mediaserver/tasks/nginx.yml index f04ddb7..4de1bcc 100644 --- a/roles/mediaserver/tasks/nginx.yml +++ b/roles/mediaserver/tasks/nginx.yml @@ -8,10 +8,17 @@ - name: Gather package facts ansible.builtin.package_facts: +- name: Create nginx modules directory + become: true + ansible.builtin.file: + path: /usr/lib/nginx/modules + state: directory + mode: 0755 + - name: Download datadog nginx tracing module become: true ansible.builtin.unarchive: - src: "https://github.com/DataDog/nginx-datadog/releases/download/v1.0.4/nginx_{{ ansible_facts.packages.nginx[0].version | split('-') | first }}-arm64-ngx_http_datadog_module.so.tgz" + src: "https://github.com/DataDog/nginx-datadog/releases/download/v{{ nginx_datadog.version }}/nginx_{{ ansible_facts.packages.nginx[0].version | split('-') | first }}-arm64-ngx_http_datadog_module.so.tgz" dest: /usr/lib/nginx/modules remote_src: "yes" owner: root