请注意,我试图使用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 ×1