Change alternatives system to symlink to avoid priority clash when upgrading
This commit is contained in:
parent
a2c9452382
commit
db6d81c314
|
@ -13,11 +13,9 @@ prometheus_server_tarball:
|
||||||
- if_missing: {{ version_path }}
|
- if_missing: {{ version_path }}
|
||||||
|
|
||||||
prometheus_bin_link:
|
prometheus_bin_link:
|
||||||
alternatives.install:
|
file.symlink:
|
||||||
- name: prometheus
|
- name: /usr/bin/prometheus
|
||||||
- link: /usr/bin/prometheus
|
- target: {{ version_path }}/prometheus
|
||||||
- path: {{ version_path }}/prometheus
|
|
||||||
- priority: 10
|
|
||||||
- require:
|
- require:
|
||||||
- archive: prometheus_server_tarball
|
- archive: prometheus_server_tarball
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue