Adjusted requires to follow packages or extracted methods
This commit is contained in:
parent
4534135a52
commit
4b31e677ca
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
||||||
- unless: test -f /opt/prometheus/{{ exporter }}/bin/{{ parameters.check }}
|
- unless: test -f /opt/prometheus/{{ exporter }}/bin/{{ parameters.check }}
|
||||||
#}
|
#}
|
||||||
|
|
||||||
{{ exporter }}-exporter-extract:
|
{{ exporter }}_exporter_extracted:
|
||||||
archive.extracted:
|
archive.extracted:
|
||||||
- name: /opt/prometheus/{{ exporter }}/bin
|
- name: /opt/prometheus/{{ exporter }}/bin
|
||||||
- source: {{ parameters.url }}
|
- source: {{ parameters.url }}
|
||||||
|
@ -60,7 +60,11 @@
|
||||||
- group: root
|
- group: root
|
||||||
- mode: 644
|
- mode: 644
|
||||||
- require:
|
- require:
|
||||||
|
{%- if parameters.get('packages', False) %}
|
||||||
- pkg: {{ exporter }}_exporter_packages
|
- pkg: {{ exporter }}_exporter_packages
|
||||||
|
{%- else %}
|
||||||
|
- archive: {{ exporter }}_exporter_extracted
|
||||||
|
{%- endif %}
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- service: {{ exporter }}_exporter_service
|
- service: {{ exporter }}_exporter_service
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in a new issue