mirror of
https://gitlab.com/s3lph/ansible-collection-prometheus
synced 2024-11-23 02:01:10 +01:00
Fix jinja syntax error
This commit is contained in:
parent
7b34b8fad7
commit
0f87c792a2
2 changed files with 17 additions and 11 deletions
|
@ -1,10 +1,13 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: install node exporter
|
- name: install node exporter
|
||||||
include_tasks: "{{ lookup('ansible.builtin.first_found', paths=['tasks/install'], files=files) }}"
|
ansible.builtin.include_tasks: "{{ lookup('ansible.builtin.first_found', files) }}"
|
||||||
vars:
|
vars:
|
||||||
files:
|
files:
|
||||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}_{% if 'major_release' in ansible_lsb %}{{ ansible_lsb.major_release }}{% else %}{{ ansible_distribution_version}}{% endif %}.yml"
|
paths:
|
||||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}.yml"
|
- tasks/install
|
||||||
- "{{ ansible_distribution }}_{{ ansible_distribution_version }}.yml"
|
files:
|
||||||
- "{{ ansible_distribution }}.yml"
|
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}_{% if 'major_release' in ansible_lsb %}{{ ansible_lsb.major_release }}{% else %}{{ ansible_distribution_version}}{% endif %}.yml"
|
||||||
|
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}.yml"
|
||||||
|
- "{{ ansible_distribution }}_{{ ansible_distribution_version }}.yml"
|
||||||
|
- "{{ ansible_distribution }}.yml"
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: include os specific vars
|
- name: include os specific vars
|
||||||
include_vars: "{{ lookup('ansible.builtin.first_found', paths=['vars'], files=files) }}"
|
include_vars: "{{ lookup('ansible.builtin.first_found', files) }}"
|
||||||
vars:
|
vars:
|
||||||
files:
|
files:
|
||||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}_{% if 'major_release' in ansible_lsb %}{{ ansible_lsb.major_release }}{% else %}{{ ansible_distribution_version }}{% endif %}.yml"
|
paths:
|
||||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}.yml"
|
- vars
|
||||||
- "{{ ansible_distribution }}_{{ ansible_distribution_version }}.yml"
|
files:
|
||||||
- "{{ ansible_distribution }}.yml"
|
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}_{% if 'major_release' in ansible_lsb %}{{ ansible_lsb.major_release }}{% else %}{{ ansible_distribution_version }}{% endif %}.yml"
|
||||||
- "default.yml"
|
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}.yml"
|
||||||
|
- "{{ ansible_distribution }}_{{ ansible_distribution_version }}.yml"
|
||||||
|
- "{{ ansible_distribution }}.yml"
|
||||||
|
- "default.yml"
|
||||||
tags:
|
tags:
|
||||||
- "role::prometheus_node"
|
- "role::prometheus_node"
|
||||||
- "role::prometheus_node:install"
|
- "role::prometheus_node:install"
|
||||||
|
|
Loading…
Reference in a new issue