Hi,
I would like to evaluate the following condition :
Hi,
I would like to evaluate the following condition :
You don’t use Jinja2 inside when statements. Further, not all python functions, including the OS module, are exposed, and what you are saying would be an implicit local operation anyway.
You would need to run the stat module, register the result, and use that
stat: path=/path/to/file
register: foo
deubg: var=foo # see what’s available in foo, just as an FYI
shell: example
when: foo.stat.isdir
Hi Michael,
Thanks ! And "second hit bird" : I know now what my Debian shell means
by : "cannot stat".. Re-thanks.