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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/alpine.LRH.2.20.1702151350230.19483%40pikachu.3ti.be.
For more options, visit https://groups.google.com/d/optout.

Reply via email to