Hello, I can't seem to copy a tar over from one server (server01) to another(server02). I am trying to do this from a server called
---
- hosts: [dev]
tasks:
- name: Tar up /home directory on dev
command: tar -cf /home/userhome.tar.gz /home/user
become: yes
- name: Move backup to backup server [server02]
synchronize: mode=pull src=/home/userhome.tar.gz dest=/data/backup/userhome dest_port=7723
#become: yes
This is the output when i run ansible-playbook backup.yml :
PLAY ***************************************************************************
TASK [setup] *******************************************************************
TASK [Tar up /home directory on dev] ***************************************
[WARNING]: Consider using unarchive module rather than running tar
TASK [Move backup to backup server [server02] ********************************************
[WARNING]: no remote address found for delegated host
server02.helpme.com, using its name by default
fatal: [
server01.helpme.com ->
server02.helpme.com]: FAILED! => {"changed": false, "cmd": "rsync --delay-updates -F --compress --archive --rsh 'ssh -S none -o StrictHostKeyChecking=no -o Port=7723' --out-format='<<CHANGED>>%i %n%L' \"ansible@[127.0.0.1]:/home/userhome.tar.gz\" \"/data/backup/userhome\"", "failed": true, "msg": "Permission denied (publickey,gssapi-keyex,gssapi-with-mic).\r\nrsync: connection unexpectedly closed (0 bytes received so far) [receiver]\nrsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]\n", "rc": 255}
PLAY RECAP *********************************************************************
Running as user ansible, and it has access to all servers with a rsa key. I can manually ssh from server01 to server02, and I see in the secure log that it is connecting when I try running the playbook. I don't know what else to try. Thanks in advance for the help
I also am not sure what that second warning means. I've tried googling, but I don't see any info on what that means.
~
~
~
~
~