I believe the Ansible copy module can take a whole bunch of "files" and copy them in one hit. This I believe can be achieved by copying a directory recursively.
Can the Ansible template module take a whole bunch of "templates" and deploy them in one hit? Is there such a thing as deploying a folder of templates and applying them recursively?
Best Answer
The
template
module itself runs the action on a single file, but you can usewith_filetree
to loop recursively over a specified path:And for templates in a single directory you can use
with_fileglob
.