Piotr,

The thing of it is, the script (which I didn't write) runs the rndc (BIND 
Remote Name Daemon Control - we use it to reload zone files) command on our 
dns servers (which it locates), not on the host in which the script is 
located. Thus, the failure. Here's a snippet from the script:

    # rndc -s dns1 reload
>     @args = ("rndc", "-s", "dns1", "reload");
>     system(@args) == 0
>         or die "rndc -s dns1 reload failed: $!";


Changes to the script are not an option.

That said, is what I'm trying to do not doable?

Dimitri

On Monday, December 3, 2018 at 11:44:08 AM UTC-5, Dimitri Yioulos wrote:
>
> Hey, all.
>
> I need to run a script residing on the remote machine with a switch, as in 
> "/scripts/myscript -f" (it must be executed by root).  I'm using the shell 
> module, but can find no way to add the switch without the play failing.  
> Help would be appreciated.
>
> Dimitri
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0e8146dc-6e84-41de-995e-235daf16f513%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to