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
server03.helpme.com
This is part of my hosts file:
[dev]
server01.helpme.com:7723
This is my playbook:
---
- 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
delegate_to: server02.helpme.com
#become: yes
This is the output when i run ansible-playbook backup.yml :
PLAY
***************************************************************************
TASK [setup]
*******************************************************************
ok: [server01.helpme.com]
TASK [Tar up /home directory on dev] ***************************************
changed: [server01.helpme.com]
[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
*********************************************************************
server01.helpme.com : ok=2 changed=1 unreachable=0 failed=1
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.
~
~
~
~
~
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/75813b24-6fdc-48be-8845-eaef94ec037e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.