> How would I use the file module?
I think something like this could do the trick:
tasks:
- action: shell date '+%F.%H:%M:%S'
register: mydate
- action: file dest=/tmp/{{ mydate.stdout }} state=directory
Note how the 'register' keyword as mentioned by Michael "picks" up the
stdout of the command. Later, the `file' action creates the directory
proper, as Brian pointed out.
BTW, the facts obtained by Ansible via `setup' contain the current
date/time in a variety of formats; you may want to look at those.
-JP