Copy Module Error
Symptoms
During the deployment of the action Ansible, if a custom playbook file is selected, an error message is displayed.
Cause Analysis
The src path is an absolute path when the copy or template module is used.
Solution
When the copy or template module is used, change the src path to a relative path that does not start with special characters (/\$~) or contain consecutive periods (..).
Usage of Copy and Template Modules
You are not allowed to copy folders if the copy and template modules are used in playbooks. Instead, you must copy the files to the directory where the .yml script is located, set the source directory (src) to the name of the files to be copied, and set the destination directory (dest) to the file path on the target host.
![](https://support.huaweicloud.com/eu/deployman_faq/public_sys-resources/notice_3.0-en-us.png)
If the file name contains only digits (for example, 123654), enclose the file name with single quotation marks (') or double quotation marks ("), for example, '123654'.
Ansible FAQs
- Invalid Entry File Path
- Entry File Not Found
- Copy Module Error
- JSON Parameter Parsing Error
- Service Module in Playbook Scripts Fails to Start or Stop Services
- Ansible Application Deployment Fails
- Application Deployment Interruption
- Insufficient Permissions
- Parameters Contain Backslashes (\)
- No Host Exists in the Environment.
- Environment Does Not Exist.
- Failed to Deploy an Application on a Windows Host
- Error Occurs During Application Deployment with the sudo Privileges
- Deployment Blocked by Third-Party Antivirus Software
- Invalid Path
- A Network Error Occurs During Software Installation on CentOS
- A Network Error Occurs During Software Installation on Ubuntu OS
- Windows Path Not Allowed on a Linux Host
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more