Answer the question
In order to leave comments, you need to log in
Ansible - how to copy an entire directory?
Does not work:
- name: Копирую директорию
copy: src=/tmp/tomcat/ dest=/tmp/tomcat2/ recursive=yes
- name: Копирую директорию
synchronize: src=/tmp/tomcat/ dest=/tmp/tomcat2/ recursive=yes
Answer the question
In order to leave comments, you need to log in
What exactly doesn't work? Apparently there is an error? Then show the output of the command (as an option with the -vvv key)
And since this is play, then add the parameters of the play itself, and not just one task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question