[ansible-project] Re: Connect to remote servers

2014-07-24 Thread Sisu
I found my problem. As I was running ansible with sudo (-s) parameter, my ssh-agent socket was forwarded for the regular user only. Then I need to add sudo: yes to all the tasks I need sudo and be sure the task where I run ssh to remote tasks has no sudo. This link helped me to find the

[ansible-project] Connect to remote servers

2014-07-23 Thread Sisu
(remote server) On ansible I see my key has been forwarded: $ ssh-add -l 2048 XXX Users/sisu/.ssh/id_rsa(RSA) allowing forwarding on ansible: $ grep args ansible.cfg ssh_args = -o ForwardAgent=yes Task: = TASK: [mysql | shell ssh -A 10.77.24.138 'uptime