Maybe I am blind, but I could not find a way to let the
salt-ssh call fail, if file.replace did not replace a single line.
If the pattern I provide did not match, then I want to get noticed.
enable_foo: file.replace: - name: /etc/foo/foo.config - pattern: DisallowBar - repl: AllowBarUntilMidnight
- Case1: DisallowBar found and replaced, gets replaced: OK
- Case2: AllowBarUntilMidnight is already in the file: OK
- Case3: DisallowBar and AllowBarUntilMidnight are not in the file: I want salt to fail.