I setup a simple alias for my boss since he likes to run NTP queries for our rack system. One of my server wont return a ntpq -pn remotely but will execute it locally. Not sure why. Comes back with command not found rc=127, similar servers with the same OS Baseline have no issue. Just curious why this might be happening.
ansible -m shell -a “ntpq -pn” ‘servers-linux’
In my [servers-linux] inventory group is a mixed topology of 32 and 64 bit systems, all running CentOS or RHEL, 6.9 or 7.4.
Now if I run ansible -m -a “ntpstat” ‘servers-linux’ that same host returns a response instead of error code.
Any help is appreciated as to why this might be happening.