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/
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