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 3d099d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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:

Check failure on line 53 in roles/mediaserver/defaults/main.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

var-naming[pattern]

Variables names should match ^\[a-z_]\[a-z0-9_]*$ regex. (nginx-datadog) (vars: nginx-datadog)
version: 1.1.0

default:
version: latest
env: prod
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"

Check warning on line 21 in roles/mediaserver/tasks/nginx.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

jinja[spacing]

Jinja2 spacing could be improved: 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 -> 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 3d099d3

Please sign in to comment.