Yes, I meant the copy command. Does the force flag detect whether the remote file has been modified externally ? I thought it was just a flag working in a binary way: copy the file the first time, and do not copy again if present (with no check on the content). Which is not the behavior I was describing.
Le lundi 16 juin 2014, Michael DeHaan <[email protected]> a écrit : > 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] > <javascript:_e(%7B%7D,'cvml','[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] >> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');> >> . >> To post to this group, send email to [email protected] >> <javascript:_e(%7B%7D,'cvml','[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] > <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[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 > <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzX-aB2Q6vbOSZu%2BsZ1P4JV_JYWrPw1H3_ZKgjMGqzYeg%40mail.gmail.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/CAKVVxfrXvktD5SPdxzkaKjpR4no1NP6b5m3-oBRR4yXfnS8VfA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
