Diff between template and copy if target directory doesn't exist

It appears the ‘template’ module doesn’t auto create the destination directory, yet ‘copy’ module does. I don’t see any way to force it to auto-create, nor any module that would work around this. Any one else experience this? I would think both modules should have the same behavior.

I’m definitely open to either a feature request or a pull request to make this happen.

Ignore me :slight_smile:

https://github.com/ansible/ansible/issues/3759

I found the ‘file’ module.

Yeah that’s an old ticket, but the file module will serve as a workaround.

I’m open to the improvement idea.