The file command doesn't replace contents of files.

If you are thinking of copy, that parameter is force=no.




On Sun, Jun 15, 2014 at 4:50 PM, Laurent PETIT <[email protected]>
wrote:

> Hello,
>
> Is there an alternate to the file command that would prevent overriding a
> file on a server (and then fail) if it detects that the file has been
> manually changed since the last play?
>
> This could be helpful in a mixed environment where some people still have
> access to the server and may change some configuration without remembering
> to do the changes in Ansible config files.
>
> I since that at least palletops has this feature, I guess it is doing so
> by keeping a hash somewhere on the server.
>
> Regards,
>
> --
> Laurent Petit
>
> --
> 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/c3f0321b-bdab-468c-b1e5-bdbd4e93aa2e%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/c3f0321b-bdab-468c-b1e5-bdbd4e93aa2e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgzX-aB2Q6vbOSZu%2BsZ1P4JV_JYWrPw1H3_ZKgjMGqzYeg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to