Editorial question106K views818 votes0 answers2,820 following
AI-generatedBehavior of ansible.builtin.copy backup=yes on symbolic links
The ansible.builtin.copy module's backup=yes parameter creates a timestamped backup of the destination file before overwriting it. When the destination is a symbolic link, the module backs up the link target rather than the link itself, potentially discarding the original link semantics. This behavior is not explicitly guaranteed across Ansible core versions