diff --git a/templates/openstack-host-hostfile-setup.sh.j2 b/templates/openstack-host-hostfile-setup.sh.j2 index b3555b43..3c48cf9b 100644 --- a/templates/openstack-host-hostfile-setup.sh.j2 +++ b/templates/openstack-host-hostfile-setup.sh.j2 @@ -34,15 +34,6 @@ function host_update { fi } -{% raw -%} -{% set host_rfc_1034_1035_name = inventory_hostname|replace('_', '-') %} -host_update "{{ ansible_hostname|default(host_rfc_1034_1035_name) }}" \ - "{{ host_rfc_1034_1035_name }}" \ - "{{ inventory_hostname }}" \ - "127.0.1.1" \ - "{{ openstack_domain }}" -{% endraw %} - {% for item in groups['all'] %} {% set target_rfc_1034_1035_name = item|replace('_', '-') %} host_update "{{ hostvars[item]['ansible_hostname']|default(target_rfc_1034_1035_name) }}" \ diff --git a/tests/test.yml b/tests/test.yml index aaf322d0..db3ca5da 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -136,7 +136,6 @@ - "'ebtables' in modules_content" - "'vm.swappiness' in sysctl_content" - "'127.0.0.1 {{ ansible_hostname }}.openstack.local localhost {{ ansible_hostname }}' in hosts_content" - - "'127.0.1.1 {{ ansible_hostname }}.openstack.local localhost {{ ansible_hostname }}' in hosts_content" - "'127.111.111.101 {{ ansible_hostname }}.openstack.local test1 {{ ansible_hostname }}' in hosts_content" - "'127.111.111.102 {{ ansible_hostname }}.openstack.local test2 {{ ansible_hostname }}' in hosts_content" - "'127.111.111.103 {{ ansible_hostname }}.openstack.local test3 {{ ansible_hostname }}' in hosts_content"