---
- hosts: all
  tasks:
    - blockinfile:
        dest: /etc/hosts
        block: "{{ hostvars[item].ansible_host }}    {{ item }}"
        marker: "# {mark} ANSIBLE MANAGED BLOCK {{ item }}"
      with_items: "{{ groups['all'] }}" 
      become: true

Add utility script for index etc/hosts file
Add utility script for index etc/hosts file
