Piotr,
Fair enough. And, I do appreciate you sticking with this.
Output of "echo $PATH":
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin
Output of "which rndc":
/usr/bin/which: no rndc in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin) <-- not a surprise;
BIND isn't installed on this machine
Output after adding - shell: "'echo $PATH'", etc. to playbook:
ok: [admin1] => {
"path": {
"changed": true,
"cmd": "echo $PATH",
"delta": "0:00:00.006128",
"end": "2018-12-04 14:36:50.766764",
"rc": 0,
"start": "2018-12-04 14:36:50.760636",
"stderr": "",
"stderr_lines": [],
"stdout": "/usr/bin:/bin",
"stdout_lines": [
"/usr/bin:/bin"
]
}
}
Remote machine OS os CentOS 5.11 <-- yes, I know
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/d3545631-8f41-4eb2-af66-0a024ab76982%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.