描述:Ansible控制windows服务器使用fetch模块获取服务器文件并根据服务器主机名重命名
命令:
ansible windows -m fetch -a "src=C:/Users/Administrator/Desktop/1.txt dest=/root/myproject/python/ansible/{{inventory_hostname}}-1 flat=yes"
描述:Ansible控制windows服务器使用fetch模块获取服务器文件并根据服务器主机名重命名
命令:
ansible windows -m fetch -a "src=C:/Users/Administrator/Desktop/1.txt dest=/root/myproject/python/ansible/{{inventory_hostname}}-1 flat=yes"