diff --git a/roles/common/tasks/system.yml b/roles/common/tasks/system.yml index d8aefa6..59c64d4 100644 --- a/roles/common/tasks/system.yml +++ b/roles/common/tasks/system.yml @@ -2,6 +2,8 @@ # vim:ft=ansible: - name: configure hostname hostname: name={{ inventory_hostname }} +- name: ensure loopback name + lineinfile: path=/etc/hosts line="127.0.0.1 {{ inventory_hostname }}" - name: configure timezone timezone: name=America/Chicago notify: restart cron