Implement review comment (conditional)

This commit is contained in:
N
2019-04-15 12:58:00 +01:00
parent 080bff7b3d
commit f3d8830177
3 changed files with 6 additions and 4 deletions

View File

@@ -23,14 +23,12 @@ postgresql-{{ bin }}-altinstall:
- link: {{ salt['file.join']('/usr/bin', bin) }}
- path: {{ path }}
- priority: {{ postgres.linux.altpriority }}
{% if grains.os in ('Fedora', 'CentOS',) %} {# bypass bug #}
- onlyif: alternatives --display {{ bin }}
{% else %}
- onlyif: test -f {{ path }}
{%- if grains['saltversioninfo'] < [2018, 11, 0, 0] %}
- retry:
attempts: 2
until: True
{% endif %}
{%- endif %}
{%- endfor %}
{%- endif %}