Hi,
Does anyone encounter this type of error whenever try to use the powercli. it only fails on the first inventory hosts and after that the next inventory hosts will success.
- name: Create a new Snapshot
shell: |
Connect-VIServer -Server -user {{ vmuser }} -password {{ vmpassword }} | Out-Null
New-Snapshot {{ ansible_hostname|lower }} -name description
args:
executable: /usr/bin/pwsh
register: pwsh_out
delegate_to: “{{ ansibleServer }}”
tags: snapshot
ERROR RESULT
{
“msg”: "Timeout (12s) waiting for privilege escalation prompt: ",
“_ansible_no_log”: false
}