On Tuesday, 4 December 2018 15:38:03 CET Dimitri Yioulos wrote:
> Before I consider this solved, let me push the envelope a bit, and ask 
> about the switch.  If I run the play like this:
> 
> Shell: /scripts/myscript
> 
> it works.
> 
> If I run it like this:
> 
> Shell: /scripts/myscript -f
> 
> it fails with:
> 
> fatal: [admin1]: FAILED! => {"changed": true, "cmd": "/scripts/dnscopy.pl 
> -f", "delta": "0:00:02.025735", "end": "2018-12-04 09:34:11.123312", 
> "failed": true, "rc": 2, "start": "2018-12-04 09:34:09.097577", "stderr": 
> "Can't exec \"rndc\": No such file or directory at /scripts/dnscopy.pl line 
> 296.\nrndc -s dns1 reload failed: No such file or directory at 
> /scripts/dnscopy.pl line 296.", "stderr_lines": ["Can't exec \"rndc\": No 
> such file or directory at /scripts/dnscopy.pl line 296.", "rndc -s dns1 
> reload failed: No such file or directory at /scripts/dnscopy.pl line 
> 296."], "stdout": "", "stdout_lines": []}
> 
> Your continued help (or anybody else's) would be appreciated.

You script does something else with -f than without.
As the error message say it can't find rndc, so I guess it's a missing path 
issue.

-- 
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 [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/6021584.7ilz7Bmu88%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to