- name: 部署hosts文件模板
  template:
    src: hosts.j2
    dest: /etc/hosts
    backup: yes

