Skip to content
Advertisement

Tag: salt-stack

saltstack: creating directory only if does not exists

Currently I have the following rule for creating a directory Now I want to create a directory on new minions only if the directory does not exists already. Answer While your example does work, it’s not necessary. file.directory will only attempt to create the directory if it doesn’t exist.

Advertisement