Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Use inline template for simpler targets population task #99

Merged
merged 1 commit into from
Apr 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
- reload prometheus

- name: configure prometheus static targets
template:
src: "targets.yml.j2"
copy:
content: |
#jinja2: lstrip_blocks: True
{{ item.value | to_nice_yaml(indent=2) }}
dest: "{{ prometheus_config_dir }}/file_sd/{{ item.key }}.yml"
force: yes
owner: root
Expand Down
3 changes: 0 additions & 3 deletions templates/targets.yml.j2

This file was deleted.