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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1


How does ansible work?

2


What are the different components of ansible?

3


Is it possible to build our modules in ansible?

1


How can you handle different machines needing different user accounts or ports to log in with?

3


How to access a variable of the first host in a group?

2


How should one configure a jump host to access servers that I have no direct access to?

1


How ansible different from the playbook?

1


What are the advantages of ansible?

3


Explain the callback plugin in ansible?

2


What are the different components of ansible? Explain ansible architecture.

3


Describe your newsletter ansible and who it’s aimed at.

2


What is configuration management and how does it help an organization?

2


How to install ansible?

1


Compare ansible with chef.

2