From cc80c2d554236a0cfdb7ae4e7302a3027507ff1c Mon Sep 17 00:00:00 2001 From: Roberto Alfieri Date: Tue, 10 Oct 2023 15:22:49 +0200 Subject: [PATCH] Fixed typo while using `ansible.builtin.service_facts` - Changed `service` to `services` in when clause Signed-off-by: Roberto Alfieri --- roles/edpm_multipathd/tasks/install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/edpm_multipathd/tasks/install.yml b/roles/edpm_multipathd/tasks/install.yml index b3b905004..e7b2e0dc8 100644 --- a/roles/edpm_multipathd/tasks/install.yml +++ b/roles/edpm_multipathd/tasks/install.yml @@ -26,8 +26,8 @@ state: stopped enabled: false when: - - ansible_facts.service["multipathd"] is defined - - ansible_facts.service["multipathd"].status == "enabled" + - ansible_facts.services["multipathd"] is defined + - ansible_facts.services["multipathd"].status == "enabled" failed_when: false loop: - multipathd.service