- name: Install custom hosts file
become: true
ansible.builtin.template:
src: etc_hosts.j2
dest: "{{ hosts_file }}"
owner: root
group: root
mode: 0644