Dimitri, Send us the output of the following (with become etc) - shell: "whoami" register: who - debug: var=who
Also: login to remote machine, switch to root and run your script with -f switch. What output are you getting? What do you get when you run "which rndc" as root? Piotr wt., 4 gru 2018 o 17:10 Dimitri Yioulos <[email protected]> napisaĆ(a): > I thought that's what I should do. I made those changes, but then the > playbook is stuck/runs without completion (until it ultimately times out, > I'm guessing). > > 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/b752d5fb-6eab-40d6-be5f-b9614b26fbc6%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/b752d5fb-6eab-40d6-be5f-b9614b26fbc6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CACHJvyNQMQG5mnkTfUmGtdW%2BEp%3DLS87K27c%3DbK_6c6QW2cjkDA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
