@ -60,6 +60,7 @@ options:
- Influence whether the remote file must always be replaced .
- Influence whether the remote file must always be replaced .
- If C ( yes ) , the remote file will be replaced when contents are different than the source .
- If C ( yes ) , the remote file will be replaced when contents are different than the source .
- If C ( no ) , the file will only be transferred if the destination does not exist .
- If C ( no ) , the file will only be transferred if the destination does not exist .
- Alias C ( thirsty ) has been deprecated and will be removed in 2.13 .
type : bool
type : bool
default : yes
default : yes
aliases : [ thirsty ]
aliases : [ thirsty ]
@ -510,6 +511,9 @@ def main():
supports_check_mode = True ,
supports_check_mode = True ,
)
)
if module . params . get ( ' thirsty ' ) :
module . deprecate ( ' The alias " thirsty " has been deprecated and will be removed, use " force " instead ' , version = ' 2.13 ' )
src = module . params [ ' src ' ]
src = module . params [ ' src ' ]
b_src = to_bytes ( src , errors = ' surrogate_or_strict ' )
b_src = to_bytes ( src , errors = ' surrogate_or_strict ' )
dest = module . params [ ' dest ' ]
dest = module . params [ ' dest ' ]