Example:

password    sufficient    pam_unix.so shadow nullok try_first_pass 
use_authtok

And I want to wind up with:

password    sufficient    pam_unix.so sha512 shadow nullok try_first_pass 
use_authtok

And let's assume I don't know what might come after pam_unix.so, and want 
to preserve whatever's there, and so can't just use line="string of text"

Right now, I'd use 'command' or 'shell' to call sed or awk to accomplish 
this.  But is there a way to massage ansible into doing this?

-- 
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/4daaab49-61a2-442b-9b40-fa300603c3f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to