Re: [ansible-project] Re: NTP Query vs. NTPstat using Ansible

2018-02-12 Thread Kai Stian Olstad
On Monday, 12 February 2018 16.22.16 CET Alan Harkleroad wrote:
> Now I did find by adding the path to ntpq it resolved the issue, just not 
> sure why I needed to on that one host when 2 identical hosts dont require 
> the path to be sourced. 

The environment isn't the same on the hosts so PATH differ and it can't find 
ntpq.


-- 
Kai Stian Olstad

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1561233.faFPqTzzer%40x1.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: NTP Query vs. NTPstat using Ansible

2018-02-12 Thread Alan Harkleroad
Now I did find by adding the path to ntpq it resolved the issue, just not 
sure why I needed to on that one host when 2 identical hosts dont require 
the path to be sourced. 

On Monday, February 12, 2018 at 10:04:32 AM UTC-5, Alan Harkleroad wrote:
>
> 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. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cb611607-a87d-48a1-8ecf-e985342101fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.