Make cronfile work because of filename error#25
Conversation
cron prohibits dots in the cron.d filenames. Therefore, we need to escape or replace them. I chose to replace dots with underscores
enricostano
left a comment
There was a problem hiding this comment.
If it's cronfile complaining, why don't we do the s/./_ directly there instead of touching more generic variables?
Because it's the variable is not that generic (it's only used as the internal restic repo name and for this wrapper) and because the naming of the wrapper happens inside restic-role. In the restore-to-controller taskfile we do it ourselves, but at main.yml we have no direct control over it, only through this variable. Also, escaping of dots ( |
Also, it's the filename of the cronfile causing the issue. I'm not sure about what you meant with "replace directly there" |
Would you mind to point me to the place where we create that filename? Thanks! |
Again, it's not "us" who create the filename. See the linked tasks in my comment above and the external role who uses the "restic repo name" to create the "restic wrapper filename" |
cron prohibits dots in the cron.d filenames. Therefore, we need to escape or replace them. I chose to replace dots with underscores