小编Sri*_*nth的帖子

在Ansible中使用通配符进行批量复制

请注意,我试图使用ansible将批量文件从源服务器复制到目标服务器.在尝试错误时.请帮我.

---
- name: Going to copy bulk files
hosts: test
vars_prompt:
- name: copy
prompt: Enter the Bulk File to Copy
private: no
tasks:
- name: Copy bulk files
shell: cp /tmp/guru/{{ copy }}* /ansible/sri
Run Code Online (Sandbox Code Playgroud)

ansible

-6
推荐指数
1
解决办法
5387
查看次数

标签 统计

ansible ×1