Skip to content

Commit

Permalink
Update nginx-datadog to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienPatte committed May 24, 2024
1 parent 53de7d4 commit 2caa687
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions roles/mediaserver/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ themepark:
theme: organizr
version: 1.16.2

nginx_datadog:
version: 1.1.0

default:
version: latest
env: prod
2 changes: 1 addition & 1 deletion roles/mediaserver/tasks/datadog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
9 changes: 8 additions & 1 deletion roles/mediaserver/tasks/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2caa687

Please sign in to comment.