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
Write an ansible playbook to automate the starting of ec2 instance.
How does ansible work?
What are the different components of ansible?
Is it possible to build our modules in ansible?
How can you handle different machines needing different user accounts or ports to log in with?
How to access a variable of the first host in a group?
How should one configure a jump host to access servers that I have no direct access to?
How ansible different from the playbook?
What are the advantages of ansible?
Explain the callback plugin in ansible?
What are the different components of ansible? Explain ansible architecture.
Describe your newsletter ansible and who it’s aimed at.
What is configuration management and how does it help an organization?
How to install ansible?
Compare ansible with chef.