copy module complains that "absolute paths are required" #23017
Labels
affects_2.2
This issue/PR affects Ansible v2.2
bug
This issue/PR relates to a bug.
files
Files category
module
This issue/PR relates to a module.
P3
Priority 3 - Approved, No Time Limitation
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
ISSUE TYPE
COMPONENT NAME
module copy
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
When deploying an application cluster, I am copying the applications war file to destination hosts before deploying them to multiple tomcat instances.
Currently, my playbook copies the .war file from the local "files/" directory on the ansible control machine.
On the target machine, the war file is renamed (compared to src) and ownership and mode are changed.
When the file is already present on the target machine and has the correct checksum, module "copy" complains that "absolute paths are required" and fails.
STEPS TO REPRODUCE
https://gist.github.com/Nirkus/ee6d1782be1e7e1cdaa6ca8fcece066c
https://gist.github.com/Nirkus/941281b7b89c416e6ecd3a205ec03bbc
EXPECTED RESULTS
ACTUAL RESULTS
When the file is already present on the target machine and has the correct checksum, module "copy" complains that "absolute paths are required" and fails.
(see gist links above)
The text was updated successfully, but these errors were encountered: