From 23c9ec588cce91fb08680616aad4a6fa0e88832f Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Tue, 11 Oct 2022 23:45:15 -0500 Subject: [PATCH] Remove localhost host entry Yeah that's causing issues with DNS --- roles/common/tasks/system.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/system.yml b/roles/common/tasks/system.yml index c2057c0..28c23b4 100644 --- a/roles/common/tasks/system.yml +++ b/roles/common/tasks/system.yml @@ -3,7 +3,7 @@ - name: configure hostname ansible.builtin.hostname: name={{ inventory_hostname }} - name: ensure loopback name - ansible.builtin.lineinfile: path=/etc/hosts line="127.0.0.1 {{ inventory_hostname }}" + ansible.builtin.lineinfile: path=/etc/hosts state=absent line="127.0.0.1 {{ inventory_hostname }}" - name: configure timezone timezone: name=America/Chicago notify: restart cron