)]}'
{"ansible/roles/baremetal/tasks/pre-install.yml":[{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"2cc21330b0f81042fec14a23513c75afc31a48a5","unresolved":false,"context_lines":[{"line_number":17,"context_line":"- name: Ensure hostname does not point to 127.0.1.1 in /etc/hosts"},{"line_number":18,"context_line":"  lineinfile:"},{"line_number":19,"context_line":"    dest: /etc/hosts"},{"line_number":20,"context_line":"    regexp: \"^127.0.1.1\\\\b.*\\\\s{{ ansible_hostname }}\\\\b\""},{"line_number":21,"context_line":"    state: absent"},{"line_number":22,"context_line":"  become: True"},{"line_number":23,"context_line":"  when: customize_etc_hosts | bool"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3fa7e38b_922c96b2","line":20,"updated":"2020-02-14 16:42:03.000000000","message":"So the idea here is that you are ignoring the FQDN part, and assuming ansible_hostname is after it?","commit_id":"adbe115e39ef2320e2e1ab57f97d5191282951d7"},{"author":{"_account_id":30491,"name":"Radosław Piliszek","display_name":"Radek","email":"radek@piliszek.it","username":"yoctozepto","status":"self-employed techologist, collaborating mostly with 7bulls.com"},"change_message_id":"c479c7d56f3af6a3401fd6dab2da45c18b1a6e83","unresolved":false,"context_lines":[{"line_number":17,"context_line":"- name: Ensure hostname does not point to 127.0.1.1 in /etc/hosts"},{"line_number":18,"context_line":"  lineinfile:"},{"line_number":19,"context_line":"    dest: /etc/hosts"},{"line_number":20,"context_line":"    regexp: \"^127.0.1.1\\\\b.*\\\\s{{ ansible_hostname }}\\\\b\""},{"line_number":21,"context_line":"    state: absent"},{"line_number":22,"context_line":"  become: True"},{"line_number":23,"context_line":"  when: customize_etc_hosts | bool"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3fa7e38b_35f02c92","line":20,"in_reply_to":"3fa7e38b_922c96b2","updated":"2020-02-14 17:15:46.000000000","message":"Not after, I just remove any line with this magic address which points to any domain version of the hostname. (There is .* in there). The reason is that ansible_fqdn is not reliable either. This is the safest to fix breakage from current Ubuntu installers.","commit_id":"adbe115e39ef2320e2e1ab57f97d5191282951d7"}]}
