I’m using the command module to run a few commands.
I’m using the “creates” feature of the module as a check so that re running of command can be prevented, but it isn’t creating the file in the first place.
I'm using the command module to run a few commands.
I'm using the "creates" feature of the module as a check so that re running of command can be prevented, but it isn't
creating the file in the first place.
what could be the possible reason of it?
The module doesn't create the file. The idea is that the command itself creates that file.
Yes! This is only used to avoid running the command if the file exists. The command you run must create the file if you intend to use the existence of the file to prevent running the command again.