---
# playbook files for configure linux /etc/hosts
# author: gaoren.huang
- hosts: deploy.erp.host
remote_user: root
tasks:
- name: add to /etc/hosts
lineinfile:
dest: /etc/hosts
line: '10.66.62.5 erp.prep.qq.01'
line: '10.66.62.6 erp.prep.qq.02'
state: present