diff --git a/tests/templates/ceph-inventory.j2 b/tests/templates/ceph-inventory.j2 index f005bfec5f..8b56f8bb56 100644 --- a/tests/templates/ceph-inventory.j2 +++ b/tests/templates/ceph-inventory.j2 @@ -1,5 +1,5 @@ [storage] -{% for host in hostvars %} +{% for host in hostvars | reject('equalto', 'localhost') %} {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} {% endfor %} diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2 index d89b905ca0..5492d94862 100644 --- a/tests/templates/globals-default.j2 +++ b/tests/templates/globals-default.j2 @@ -150,7 +150,7 @@ enable_redis: "yes" enable_ceph_rgw: "yes" ceph_rgw_hosts: -{% for host in hostvars %} +{% for host in hostvars | reject('equalto', 'localhost') %} - host: {{ host }} ip: {{ hostvars[host]['ansible_host'] }} port: 6780