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 }}
|
||||
#}
|
||||
|
||||
{{ exporter }}-exporter-extract:
|
||||
{{ exporter }}_exporter_extracted:
|
||||
archive.extracted:
|
||||
- name: /opt/prometheus/{{ exporter }}/bin
|
||||
- source: {{ parameters.url }}
|
||||
|
@ -60,7 +60,11 @@
|
|||
- group: root
|
||||
- mode: 644
|
||||
- require:
|
||||
{%- if parameters.get('packages', False) %}
|
||||
- pkg: {{ exporter }}_exporter_packages
|
||||
{%- else %}
|
||||
- archive: {{ exporter }}_exporter_extracted
|
||||
{%- endif %}
|
||||
- watch_in:
|
||||
- service: {{ exporter }}_exporter_service
|
||||
{%- endif %}
|
||||
|
|
Loading…
Reference in a new issue