Score:0

Ansible winrm Warning but ssh is used

cn flag

I tested the last few days OpenSSH as connection method for windows hosts in Ansible, because we are a mixed environment and I want a similar approach for linux and windows.

I tested for windows 10 and 11 hosts and it is working mostly as expected. The thing which bothers me: If I run a playbook against an inventory where not all windows machines are running I will get an [WARNING]: Failed to collection winrm due to timeout message after a minute of timeout.

I can remove the warning by using the inventory variable ansible_connection: ssh

Why is it necessary to use this variable if winrm is not in use? I thought ssh is the default connection method of ansible.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.