Ansible 2.5 with ansible-hpe-cw7 module issue

Hi everyone,

I’ve an issue with the hpe module comware 7. I’m trying to use it to establish netconf connection with equipments but unfortunately I obtained error message :

fatal: [LAB]: UNREACHABLE! => {
“changed”: false,
“msg”: “Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp". Failed command was: ( umask 77 && mkdir -p "echo $HOME/.ansible/tmp/ansible-tmp-1522997534.79-218023192653219" && echo ansible-tmp-1522997534.79-218023192653219="echo $HOME/.ansible/tmp/ansible-tmp-1522997534.79-218023192653219" ), exited with result 1, stdout output: \r\r\n\u0000******************************************************************************\r\r\n* Copyright (c) 2010-2017 Hewlett Packard Enterprise Development LP \r\r\n Without the owner’s prior written consent, \r\r\n no decompiling or reverse-engineering shall be allowed. \r\r\n*****************************************************************************\r\r\n\r\r\n\u0000/bin/sh -c ‘( umask 77 && mkdir -p "echo $HOME/.ansible/tmp/ansible-tmp-1522997534.79-218023192653219" && echo ansible-tmp-1522997534.79-218023192653219="echo $HOME/.ansible/tmp/ansible-tmp-1522997534.79-218023192653219" ) && sleep 0’\r\r\n ^\r\r\n % Unrecognized command found at ‘^’ position.\r\r\n, stderr output: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 6420\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n”,
“unreachable”: true

I changed the ansible.cfg remote_tmp field by $HOME/.ansible/tmp
I used the CentOS 7 linux distribution.

Please help me to solve it.

Regards.

Hi,

May be I must used the ansible_connection netconf to specify the method of connection to the switch