---
- hosts: default
remote_user: root
tasks:
- name: "复制一个文件到远程"
ansible.builtin.copy:
src: /root/workspace/script/remote.sh
dest: /tmp/remote.sh
owner: root
group: root
mode: "0777"
# ansible-playbook -i /root/workspace/inventory/test.ini /root/workspace/playbook/copy.yaml