if the configuration file is local to the 'master', you can use a lookup:

lookup('pipe', 'cat /file/with/url')

if it is remote, backtick to do same

On Fri, Jun 5, 2015 at 12:40 PM, Emil Kacperski <[email protected]> wrote:
> Not quite. basically right now I have 10 individual servers where I run a
> script to bring up a chromium browser output is hdmi.  Basically
> I have a videowall with monitors.  Each server has the script and a local
> screen.conf file which contains the url string.
>
> But instead of logging into each server to change the url or restart the
> script I want to do this with ansible.
>
> The script and everything is running just fine using the script.  Except of
> course I want a screen.conf to reside on the ansible server
> and not on the remote server.  So that when I run the restart script the url
> is passed into the script and everything is controlled from
> the ansible server logging into the remote servers.
>
> Basically I am not sure how to pass on the url to the remote server script.
>
> The example I gave is very basic, just assume that the echo.sh is located on
> the remote server and the url file is located on the ansible
> server.  Let's assume screen.conf, so when I run the echo.sh using the shell
> module I need it to grab the url from the screen.conf
> and then pass it to the echo.sh script where it's referenced as $url.
>
> Does this make sense?
>
> --
> 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/153d7880-f03b-42b7-a122-be81c6137a22%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Brian Coca

-- 
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/CAJ5XC8mdQKYK4XoDCoQ_TanUh107ZBXtguCQAaaR0wev_UMWVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to