vim play.yml
---
- name: ansible playbook
hosts: all
remote_user: root
become: yes
tasks:
- name: "拷贝测试文件"
copy:
src: ./files/test.txt
dest: /home/test
vim play.yml
---
- name: ansible playbook
hosts: all
remote_user: root
become: yes
tasks:
- name: "拷贝测试文件"
copy:
src: ./files/test.txt
dest: /home/test