From 0a576bebf9c1993ed935ce8656f1aafb335e3f27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Sun, 10 Jan 2016 16:52:37 +0100 Subject: [PATCH] Fix firewall check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use command module instead of shell since we do not do anything fancy here. Remove the duplicate register. Signed-off-by: Sébastien Han --- roles/ceph-common/tasks/checks/check_firewall.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/ceph-common/tasks/checks/check_firewall.yml b/roles/ceph-common/tasks/checks/check_firewall.yml index 632a85605..a04b98e95 100644 --- a/roles/ceph-common/tasks/checks/check_firewall.yml +++ b/roles/ceph-common/tasks/checks/check_firewall.yml @@ -1,6 +1,6 @@ --- - name: check if nmap is installed - shell: "command -v nmap" + command: "command -v nmap" changed_when: false failed_when: false register: nmapexist @@ -16,7 +16,6 @@ failed_when: false with_items: groups.{{ mon_group_name }} register: monportstate - register: monportstate when: mon_group_name in group_names - name: fail if monitor port is filtered -- 2.39.5