mirror of
https://gitlab.com/s3lph/ansible-collection-prometheus
synced 2024-11-23 02:01:10 +01:00
Fix yet another jinja syntax error
This commit is contained in:
parent
3cc4e33888
commit
c51066cf17
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
- name: install node exporter
|
||||
include_tasks: "install/{{ item }}.yml"
|
||||
with_first_found:
|
||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}_{% if 'major_release' in ansible_lsb %}{{ ansible_lsb.major_release }}{% else %}{{ ansible_distribution_version}} {% endif %}"
|
||||
- "{% 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 %}"
|
||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}"
|
||||
- "{{ ansible_distribution }}_{{ ansible_distribution_version }}"
|
||||
- "{{ ansible_distribution }}"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
- name: include os specific vars
|
||||
include_vars: "{{ item }}.yml"
|
||||
with_first_found:
|
||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}_{% if 'major_release' in ansible_lsb %}{{ ansible_lsb.major_release }}{% else %}{{ ansible_distribution_version }} {% endif %}"
|
||||
- "{% 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 %}"
|
||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}"
|
||||
- "{{ ansible_distribution }}_{{ ansible_distribution_version }}"
|
||||
- "{{ ansible_distribution }}"
|
||||
|
|
Loading…
Reference in a new issue