ansible: fix install tasks for Debian/Ubuntu (part 2)

pull/183/head
Laurent Grawet 2019-11-27 17:41:48 +01:00
parent 9896a5ee62
commit 89b6ed2bb4
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
- name: Keepalived has already installed
debug:
msg: "Keepalived has already installed"
when: is_installed.results|selectattr("yumstate", "match", "installed")|list|length != 0
when: (ansible_facts['os_family'] == "RedHat") or (ansible_facts['os_family'] == 'CentOS') and is_installed.results|selectattr("yumstate", "match", "installed")|list|length != 0
- name: Exiting
meta: end_play