Hello!
I am trying to use the HPE.ILO collection from Ansible Galaxy to configure SNMPv3 on my HP ILO servers. I am using the following playbook code:
- hosts: servers
vars:
snmpv3_users:
- security_name: "luser"
auth_protocol: "MD5"
auth_passphrase: "fdfdfd"
privacy_protocol: "DES"
privacy_passphrase: "fdsfdf"
baseuri: x.x.x.x
username: uname
password: pwd
roles:
- create_snmpv3_users
However, the execution of playbook gets stuck at:
SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o Port=22 -o 'User="<>"' -o ConnectTimeout=10 -oKexAlgorithms=+diffie-hellman-group14-sha1 -oHostKeyAlgorithms=+ssh-dss -o 'ControlPath="/home/lab-actions/.ansible/cp/c897a"' IP '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo Tue Oct 1 10:42:45 2024/.ansible/tmp `"&& mkdir "` echo Tue Oct 1 10:42:45 2024/.ansible/tmp/ansible-tmp-177775 `" && echo ansible-tmp-17279005="` echo Tue Oct 1 10:42:45 2024/.ansible/tmp/ansible-tmp-17005`" ) && sleep 0'"'"''
After staying here for a few minutes, it fails with:
fatal: FAILED! => {"msg": "failed to resolve remote temporary directory from ansible-tmp-12345: `( umask 77 && mkdir -p \"` echo ~/.ansible/tmp/ansible-tmp-12345`\" && echo ansible-tmp-12345=\"` echo ~/.ansible/tmp/ansible-tmp-12345`\" )` returned empty string"}
The ILO User that I am trying to use has admin rights.
If anyone has used HPE ILO ansible collection then some leads will be appreciated.
Thank you!