Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can you copy files recursively onto a target host? If yes, how?



Can you copy files recursively onto a target host? If yes, how?..

Answer / Dheeraj Kumar

Yes, Ansible can copy files recursively onto a target host using the `copy` module and the `recursive` flag. Here's an example: n`n- name: Copy directoryn copy:n src: /path/to/source_dirn dest: /path/to/destination_dirn owner: rootn group: rootn mode: '0755'n recursive: yesn`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ansible Interview Questions

Is it unsafe to bulk-set task arguments from a variable?

1 Answers  


What are the advantages of ansible?

1 Answers  


How do I see a list of all of the ansible_ variables?

1 Answers  


When to use {{}} ? How to interpolate variables or dynamic variable names?

1 Answers  


What is ansible role?

1 Answers  


Why are you attracted to science and science fiction?

0 Answers  


How can you create a lamp stack and deploy a webpage by using ansible?

1 Answers  


What are the ansible modules?

1 Answers  


What is the best way to make content reusable/redistributable?

1 Answers  


Desired to gain proficiency on ansible?

1 Answers  


Explain what are playbooks in ansible? Explain with some examples.

1 Answers  


How would you install ansible on a centos system?

1 Answers  


Categories