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 |
Is it unsafe to bulk-set task arguments from a variable?
What are the advantages of ansible?
How do I see a list of all of the ansible_ variables?
When to use {{}} ? How to interpolate variables or dynamic variable names?
What is ansible role?
Why are you attracted to science and science fiction?
How can you create a lamp stack and deploy a webpage by using ansible?
What are the ansible modules?
What is the best way to make content reusable/redistributable?
Desired to gain proficiency on ansible?
Explain what are playbooks in ansible? Explain with some examples.
How would you install ansible on a centos system?