From 89b6ed2bb456d740f43bc30bbc8d808c2ccd8d48 Mon Sep 17 00:00:00 2001 From: Laurent Grawet Date: Wed, 27 Nov 2019 17:41:48 +0100 Subject: [PATCH] ansible: fix install tasks for Debian/Ubuntu (part 2) --- app/scripts/ansible/roles/keepalived/tasks/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/ansible/roles/keepalived/tasks/install.yml b/app/scripts/ansible/roles/keepalived/tasks/install.yml index d4cb1cf3..dbc06d7f 100644 --- a/app/scripts/ansible/roles/keepalived/tasks/install.yml +++ b/app/scripts/ansible/roles/keepalived/tasks/install.yml @@ -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