TECHIES WORLD

For Techs.... Techniques.... Technologies....

BashLinux

How to copy folder recursively using Ansible

We can use Ansible command module and execute the cp in-order to copy the folder recursively.

Example playbook is given below.

- name: copy folder recursively
  command: cp -r source destination

Here we need to replace source and destination with the details of corresponding folders.

That's all…

Leave a Reply