- hosts: - malabaricus tasks: - import_role: name: unix-machine - import_role: name: timezone - import_role: name: lusers - import_role: name: superusers - become: yes name: /etc/hostname copy: dest: /etc/hostname content: | malabaricus - become: yes name: /etc/hosts copy: dest: /etc/hosts content: | 127.0.0.1 localhost malabaricus ::1 localhost malabaricus ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters - import_role: name: docker-host