Hi Rong, do you have any updates on this one? did you write a new module you can share?
Thanks! Don On Thursday, February 16, 2017 at 1:36:24 AM UTC-5, rong zhao wrote: > > Yes, you said totally right, it is exactly my problem. I have tried your > suggestion, someone already logged on that same console. > > but ansible still reports Authentication or permission failure. > > now, I want to study ansible's source code, try to rewrite the code after > initial connection. it should send a 'enter' key, and try to login if the > console is not logged on. > > thank you for your help, I will update my trial later. > > 在 2017年2月15日星期三 UTC+8下午8:55:40,Dag Wieers写道: >> >> On Tue, 14 Feb 2017, rong zhao wrote: >> >> > My remote hosts' management port is serial console over LAN. >> > When connect by ssh manually, I use ops account connect to remote >> hosts, >> > and then it become the Linux console, I just run ssh command. >> > >> > Now, I use ansible -m ping to test reachable, it reports: >> > "Authentication or permission failure. In some cases, you may have >> been >> > able to authenticate and did not have permissions on the remote >> directory. >> > Consider changing the remote temp path in ansible.cfg to a path rooted >> in >> > ...." >> > >> > yes, it should report this error, because this is not real ssh >> session, >> > it is console. >> > >> > is there any method to modify the reachable test command? or do you >> have >> > any suggestion for serial console over LAN? >> >> Ansible expects to run python scripts remotely, so it requires a >> transport >> (SSH) and the ability to run python. >> >> In your case I assume you connect over SSH to an out-of-band management >> board (using its own credentials) then get a serial console and then you >> have to log on again on the console prompt. >> >> This is not supported by Ansible at the moment, but is not impossible to >> implement. Although there are pitfalls you have to consider (eg. someone >> already logged in on that same console, or not having properly logged out >> due to unexpected disconnect). >> >> -- >> Dag >> > -- 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/787f74d8-9e9e-4abe-ad7b-a574a3832366%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
