Enhance remove S/W support

This commit is contained in:
N
2018-07-24 21:44:09 +01:00
parent 332fe7b2b5
commit 9d2f69a865
10 changed files with 242 additions and 39 deletions

View File

@@ -23,7 +23,11 @@ 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 }}
{% endif %}
{%- endfor %}
{%- endif %}