if I use
replace_line "#{pg_etc}/postgresql.conf" do
replace /^[#]*listen_addresses.*/
with "listen_addresses = '*'"
end
chef always tells me that something has changed:

Would it be possible to mark the file as unchanged when no change has happened because the "with" is already there or would I have to use a more complicated "replace" regexp
if I use
chef always tells me that something has changed:
Would it be possible to mark the file as unchanged when no change has happened because the "with" is already there or would I have to use a more complicated "replace" regexp