1 2 3 4 5 6 7 8 9 10 11 12 13 14
[storage] {% for host in hostvars | reject('equalto', 'localhost') %} {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} {% endfor %} # Ceph-Ansible hosts [mons:children] storage [mgrs:children] storage [osds:children] storage