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