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

What is ansible task?

1 Answers  


Enlist the differences between variable name and environment variables.

1 Answers  


How does configuration management is help an organization?

1 Answers  


When should I use {{ }}?

1 Answers  


What is ansible and what makes it stand out from the rest of the configuration management tools?

1 Answers  


How do I see all the inventory vars defined for my host?

1 Answers  


How to keep secret data in playbook?

0 Answers  


How ansible different from the playbook?

1 Answers  


Where does the configuration file live and what can I configure in it?

1 Answers  


Write an ansible playbook to automate the starting of ec2 instance.

1 Answers  


How is ansible different from puppet?

1 Answers  


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

1 Answers  


Categories