diff --git a/roles/hostname/tasks/main.yml b/roles/hostname/tasks/main.yml index 6072e4e3d..92f544862 100644 --- a/roles/hostname/tasks/main.yml +++ b/roles/hostname/tasks/main.yml @@ -14,7 +14,6 @@ no_log: true loop: - { regexp: '^127\.0\.0\.1[ \t]+localhost', line: '127.0.0.1 localhost {{ ansible_hostname }}' } - - { regexp: '^{{ ansible_default_ipv4.address }}.+$', line: '{{ ansible_default_ipv4.address }} {{ ansible_hostname }}' } when: hostname is defined and hostname | length > 0 tags: hostname