diff --git a/tasks/RedHat.yml b/tasks/RedHat.yml index 8c5ea50..8b4c00b 100644 --- a/tasks/RedHat.yml +++ b/tasks/RedHat.yml @@ -88,10 +88,10 @@ line: "{{ item.line }}" backrefs: yes with_items: - - {regexp: "^127\.0\.0\.1.+localdomain4$", + - {regexp: "^127.0.0.1.+localdomain4$", line: "127.0.0.1 localhost {{ ansible_hostname }}" } - - {regexp: "^\:\:1.+localdomain6$", + - {regexp: "^::1.+localdomain6$", line: "::1 localhost {{ ansible_hostname }}" } - {regexp: "^{{ ansible_default_ipv4.address }}.*{{ ansible_default_ipv4.address.split('.')[-1] }}$",