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 |
What is ansible task?
Enlist the differences between variable name and environment variables.
How does configuration management is help an organization?
When should I use {{ }}?
What is ansible and what makes it stand out from the rest of the configuration management tools?
How do I see all the inventory vars defined for my host?
How to keep secret data in playbook?
How ansible different from the playbook?
Where does the configuration file live and what can I configure in it?
Write an ansible playbook to automate the starting of ec2 instance.
How is ansible different from puppet?
Is it unsafe to bulk-set task arguments from a variable?