- The following syntax can be used to create a directory called ABC in the path /src using file-module.
- name:ABC (Creates directory)
file:
path: /src/www
state: directory
or,
- name: create project directory {{ common.proj_dir }}
file: state=directory path={{ common.proj_dir }}
Now, to download a file using get_url-module, use the syntax given below:
- name: download files
get_url: url={{ opencv.url }} dest={{ common.proj_dir }}/{{ opencv.file }}