In my Ansible playbook many times i need to create file there
- name: Copy file
template:
src: code.conf.j2
dest: "{{project_root}}/conf/code.conf"
now many times conf
dir is not there. Then I have to create more task to create that dir first.
Is there any easy way to auto create dir if don't exist with some option
Right now, this is the only way