You can use
match to do that
match: Specifies a regular expression to run against existing lines in the file; if a match is found, it is replaced rather than adding a new line. A regex comparison is performed against the line value, and if it does not match, an exception is raised. Valid options: String containing a regex. Default: Undefined.
Package['wget']being present. But I don't want to manage that package, only tell the consumer (= user of my module) that they should install it. Would simply having
require=>Package['wget']be enough and just let it error out and let the user fix it, or is there some good way to do this?