Unable o copy file in the Ansible tower

Hi,

Kindly help on the below issue,

I was trying to 2gb file from ansible controller to ansible node where am using copy / synchronize module and my all playbooks are working fine in the ansible cli, when it comes to ansible tower am getting below error.

Private key added and Password too.

Node is able to ping from the tower successfully.

Kindly help what could be the issue.

Error:

fatal: [ p01lap095.corp.tet.tst ]: FAILED! => {

“changed”: false,

“cmd”: “sshpass -d8 /usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --out-format=<>%i %n%L /opt/tibco/image/binaries.tar tibco@ p01lap095.corp.tet.tst :/opt/tibco”,

“invocation”: {

“module_args”: {

“_local_rsync_password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,

“_local_rsync_path”: “rsync”,

“_substitute_controller”: false,

“archive”: true,

“checksum”: false,

“compress”: true,

“copy_links”: false,

“delete”: false,

“dest”: “tibco@ p01lap095.corp.tet.tst :/opt/tibco”,

“dest_port”: null,

“dirs”: false,

“existing_only”: false,

“group”: null,

“link_dest”: null,

“links”: null,

“mode”: “push”,

“owner”: null,

“partial”: false,

“perms”: null,

“private_key”: null,

“recursive”: null,

“rsync_opts”: ,

“rsync_path”: null,

“rsync_timeout”: 0,

“set_remote_user”: true,

“src”: “/opt/tibco/image/binaries.tar”,

“ssh_args”: null,

“times”: null,

“verify_host”: false

}

},

“msg”: “Warning: Permanently added ‘p01lap095.corp.tet.tst,xxx.xxx.xx.xxx’ (ECDSA) to the list of known hosts.\r\n********************************************************************************\n* THIS SYSTEM AND ALL RELATED INFORMATION ACCESSED THEREBY IS THE PROPERTY \n*******************************************************************************\n\nrsync: change_dir \”/opt/tibco/image\" failed: Permission denied (13)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1179) [sender=3.1.2]\n",

“rc”: 23

}

Can Any one can help on this please

Output says it all, the ID trying to transfer the file doesn’t have access to that directory.

Try changing it to an upper level directory or /tmp and ensure the file copies, or re-set the permissions for the ansible runner to be able to place the file in the correct path.

HTH,
Robert