Thanks, Johannes , I have reported this issue on github, BTW, ansible
didn't recognize the config: %C
<172.20.12.5> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o
ControlPersist=60s -o ControlPath="/root/.ansible/cp/%C" -o
KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o ConnectTimeout=10 172.20.12.5 /bin/sh -c
'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1464702659.99-146678604562601 &&
echo $HOME/.ansible/tmp/ansible-tmp-1464702659.99-146678604562601'
fatal: [172.20.12.5] => SSH Error: percent_expand: unknown key %C
It is sometimes useful to re-run the command using -vvvv, which prints SSH
debug output to help diagnose the issue.
TASK: [pre-install script]
****************************************************
FATAL: no hosts matched or all hosts have already failed -- aborting
PLAY RECAP
********************************************************************
to retry, use: --limit @/root/tmp.tjKk2GEYR5.retry
172.20.12.5 : ok=0 changed=0 unreachable=1 failed=0
在 2016年5月31日星期二 UTC+8下午5:28:50,Johannes Kastl写道:
>
> On 31.05.16 10:09 lei mei wrote:
> > yes, you are right, after add 'connection: local' to my playbook, this
> > issue seems gone away, but I still want to know how to avoid this issue
> > when I didn't run the task for local host.
>
> Oh, and try setting this in ansible.cfg:
>
> [ssh_connection]
> control_path = %(directory)s/%%C
>
> I had lots of issues with the control_path being to long before
> setting this...
>
> Johannes
>
>
>
--
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/0dfd83ec-a467-4157-9bed-9b2425963964%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.