Thanks, Kai Once I changed to localhost instead host name. Ansible is able to grab logs from remote hosts.
On Tuesday, October 22, 2019 at 4:32:21 PM UTC-4, R-JRI wrote: > > Hi, all > > I have an existing unix shell script that does ssh to connect to remote > servers to search FAILED key word through logs on the remote server. If the > logs contain FAILED key word, sftp to the servers to bring the logs to a > central server and analyzes them. > Now we want to launch the unix script from Ansible or in the future from > Ansible Tower. > Ansible shell, script and command modules are to copy or run UNIX script > on remote servers not on Ansible server. In my case, I don't want to copy > the script to run on remote servers. I want to run the script on Ansible > server. Is there a way to accomplish this in Ansible? Thanks. > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4473a620-0d69-4547-8a96-aa5b5a6013e9%40googlegroups.com.