Hi Bob,
 

> The general question: can lineinfile be used to replace a line in a file 
> if it's found and if it's not found add the line to the file?
>

I've used it successfully like this, but I didn't template my regexp.

Cheers,
Paul 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7c2faa66-3e2d-46f5-90db-7bb99828deff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to