Role to Automate Windows Update
export ANSIBLE_VAULT_PASSWORD_FILE=~/.vault_pass
ansible windows -i host -m win_ping --vault-password-file ~/.vault_pass.txt
Debugging is not enabled by default, you might want to append -vvvvv to enable this if you have issue on first connect.
If you still have issues you can test connectivity using cURL curl -vk -d "" -u "user:pass" https://:5986/wsman"
ansible-playbook -i host ./role/main.yml --vault-password-file ~/.vault_pass.txt