摘要: --- - hosts: all vars: IP: "{{ ansible_eth0['ipv4']['address'] }}" tasks: - name: 将原有的hosts文件备份 shell: mv /etc/hosts /etc/hosts_bak - name: 将ansible端的hosts复制到各自机器上 c... 阅读全文
posted @ 2017-12-12 14:41 执酒 阅读(4004) 评论(0) 推荐(0) 编辑