All my machines are imaged using FOG, so they have the same OS. The machines that do not work are linked to another network adapter, but are part of the same subnet. A simple ping playbook works on all machines…
The ping module does not use privilege escalation.
So the problem is actually with privilege escalation.
Since you already found out what the common denominator is, that is where to look further.
The obvious thing to do is sign in manually and diagnose sudo (or whatever you use) on the affected hosts.
Thanks for your reply!
From what I can see, there is no problem on these machines when using sudo manually, or through an ssh connection.
I can run the following command as well:
ssh root@143.129.78.26 shutdown -h now
The fact that the other machines that work have the exact same image makes me wonder if it is a networking issue, but then again, other ssh commands and playbooks still work…
What is your privilege escalation setup?
It defaults to sudo but it may be different in your case, for example something that relies on specific network connectivity.
I imagine something that does lookups in some sort of directory.