mirror of https://github.com/ceph/ceph-ansible.git
7 lines
405 B
YAML
7 lines
405 B
YAML
---
|
||
- name: "fail if {{ inventory_hostname }} does not have any {{ ip_version }} address on {{ monitor_address_block }}"
|
||
fail:
|
||
msg: "{{ inventory_hostname }} does not have any {{ ip_version }} address on {{ monitor_address_block }}"
|
||
when:
|
||
- hostvars[inventory_hostname]['ansible_all_' + ip_version + '_addresses'] | ipaddr(hostvars[inventory_hostname]['monitor_address_block']) | length == 0
|