Hello,
I am trying to run a simple bash script and it works fine on the command line. When I run it using the shell or command module it simply hangs and
never finishes. Tried to run using the shell or command module, tried to /dev/null, sleep and using timeout. Nothing seems to work and I am
out of ideas?
Thanks!
the script might not be detaching, have you tried using the script module?
The script is being run on the remote machine, script don’t think will apply here.
Thanks!
Another problem is with bringing up a chromium-browser, wrote a little script and it works fine. But when I run it using the shell module I get the following:
Gtk: cannot open display
Made sure that export DISPLAY=:0 is in the script, also tried to run a task to export, it simply does not work. Anyone tried to bring up a chrome browser on a remote machine?
Thanks!
in ansible use the environment: keyword for that task to set display
Ok so I got everything pretty much running. Had to use environment to set the shell variable and chromium-browser has to be run in async mode. It seems
that async mode is in seconds, is there a way to specify hours or days? Or is there a better way to run a command and not close it?
Thanks!