ansible系列之:不收集主机信息
- 当不需要主机信息时,可以不用收集主机信息,机器多时需要耗费很长时间,当某台机器无法收集主机信息时,ansible的任务就卡住了
---
- name: copy to all hosts
hosts: agents
become: yes
gather_facts: False
roles:
- upload_passwordfile_to_allhosts
---
- name: copy to all hosts
hosts: agents
become: yes
gather_facts: False
roles:
- upload_passwordfile_to_allhosts