From 211ba4a3dec4ef2457293f33ba8431b6dab6a74e Mon Sep 17 00:00:00 2001 From: Matthew Rees Date: Mon, 6 Jun 2016 16:29:59 +0200 Subject: [PATCH] Fix to reference the monitor_address variable correctly in hostvars --- roles/ceph-common/tasks/checks/check_firewall.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-common/tasks/checks/check_firewall.yml b/roles/ceph-common/tasks/checks/check_firewall.yml index cfe199e5d..b2e351544 100644 --- a/roles/ceph-common/tasks/checks/check_firewall.yml +++ b/roles/ceph-common/tasks/checks/check_firewall.yml @@ -14,7 +14,7 @@ - nmapexist.rc != 0 - name: check if monitor port is not filtered - local_action: shell set -o pipefail && nmap -p 6789 {{ item }} {{ hostvars[item]['ansible_' + monitor_interface]['ipv4']['address'] if hostvars[item]['ansible_' + monitor_interface] is defined else hostvars[item][monitor_address] }} | grep -sqo filtered + local_action: shell set -o pipefail && nmap -p 6789 {{ item }} {{ hostvars[item]['ansible_' + monitor_interface]['ipv4']['address'] if hostvars[item]['ansible_' + monitor_interface] is defined else hostvars[item]['monitor_address'] }} | grep -sqo filtered changed_when: false failed_when: false with_items: "{{ groups[mon_group_name] }}" -- 2.39.5