]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix to reference the monitor_address variable correctly in hostvars
authorMatthew Rees <matthew.rees@secate.com>
Mon, 6 Jun 2016 14:29:59 +0000 (16:29 +0200)
committerMatthew Rees <matthew.rees@secate.com>
Mon, 6 Jun 2016 14:29:59 +0000 (16:29 +0200)
roles/ceph-common/tasks/checks/check_firewall.yml

index cfe199e5dc4452b8f19124b41e043f06520a8f32..b2e351544db3e0091db0587ffd5a703ca040d001 100644 (file)
@@ -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] }}"