States "file.append" and "file.accumulated" should have state functions "append_if_not_found" and "prepend_if_not_found" similar to state "file.blockreplace"
Not sure if this has been already requested but it would be nice to have ths feature request.
Thanks for the request @wongster80. file.append's default behavior is to check if the text that will be appended already exists. If it does, it won't append the test. In this case, it seems like adding a append_if_not_found and prepend_if_not_found options would be a bit redundant (append doesn't prepend, only appends). Unless I am misunderstanding what you're requesting - Can you clarify what you mean?
I am not familiar at all with file.accumulated, so I don't know if those options would be useful or not. Maybe @basepi has some thoughts on that.
I'm with @rallytime -- I don't see the use case for file.append, seems like it's there by default. And I'm not sure you quite understand file.accumulated -- it doesn't actually edit files, it just prepares content for use in a future file.managed state, from what I understand. So I'm not sure these arguments fit for either of the functions you've listed.