diff --git a/requirements.yml b/requirements.yml index 0269232bce..99a66e1dcd 100644 --- a/requirements.yml +++ b/requirements.yml @@ -2,4 +2,4 @@ collections: - name: https://opendev.org/openstack/ansible-collection-kolla type: git - version: stable/2023.1 + version: unmaintained/2023.1 diff --git a/tests/templates/inventory.j2 b/tests/templates/inventory.j2 index 93891e2337..c084196b61 100644 --- a/tests/templates/inventory.j2 +++ b/tests/templates/inventory.j2 @@ -11,7 +11,7 @@ {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} {% endfor %} {% else %} -{% for host in hostvars %} +{% for host in hostvars | reject('equalto', 'localhost') %} {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} {% endfor %} {% endif %} @@ -31,28 +31,28 @@ control {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} {% endfor %} {% else %} -{% for host in hostvars %} +{% for host in hostvars | reject('equalto', 'localhost') %} {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} {% endfor %} {% endif %} [storage] -{% for host in hostvars %} +{% for host in hostvars | reject('equalto', 'localhost') %} {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} {% endfor %} [monitoring] -{% for host in hostvars %} +{% for host in hostvars | reject('equalto', 'localhost') %} {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} {% endfor %} [deployment] -{% for host in hostvars %} +{% for host in hostvars | reject('equalto', 'localhost') %} {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} {% endfor %} {% if scenario == 'cells' %} -{% for host in hostvars %} +{% for host in hostvars | reject('equalto', 'localhost') %} {% set cell_name = 'cell' ~ loop.index %} [{{ cell_name }}] {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} mariadb_shard_id={{ loop.index0 % 2 }} @@ -123,7 +123,7 @@ storage # In CI we want Pacemaker to run on primary and secondary (to test with HA). [hacluster] -{% for host in hostvars %} +{% for host in hostvars | reject('equalto', 'localhost') %} {% if host in ['primary', 'secondary'] %} {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} {% endif %}