我正在尝试将 dist 目录的内容复制到 nginx 目录。
- name: copy html file
copy: src=/home/vagrant/dist/ dest=/usr/share/nginx/html/
但是当我执行剧本时,它会抛出一个错误:
TASK [NGINX : copy html file] **************************************************
fatal: [172.16.8.200]: FAILED! => {"changed": false, "failed": true, "msg": "attempted to take checksum of directory:/home/vagrant/dist/"}
如何复制包含另一个目录和文件的目录?