Ansible: copy a directory content to another directory

前端 未结 12 1134
青春惊慌失措
青春惊慌失措 2020-12-24 00:25

I am trying to copy the content of dist directory to nginx directory.

- name: copy html file
  copy: src=/home/vagrant/dist/ dest=/usr/share/nginx/html/
         


        
12条回答
  •  旧巷少年郎
    2020-12-24 01:12

    Below worked for me,

    -name: Upload html app directory to Deployment host
     copy: src=/var/lib/jenkins/workspace/Demoapp/html dest=/var/www/ directory_mode=yes
    

提交回复
热议问题