Are we now going away from Ansible? Ok on ansible you have a /etc/ansible/task/url.conf file contains:
[server1] http://www.blah.com [server2] http://www.blah2.com Now you have a playbook: --- - hosts: server1 remote_user: remote tasks: - name: start videowall shell: /etc/ansible/start_video.sh So now currently inside the start_video.sh file the config file is loaded which contains the url and then when chromium is run it's referenced. How can I get Ansible to store the url from the url.conf (on ansible server) and store it within the playbook before the shell command executes the start_video.sh and when it executes, so that the remote server now knows what $url is when the script runs? I have tried different methods, including with_vars but it does not seem to work probably because a "var" has to be a dict word. Thanks for the help, this last hurdle is always the hardest to figure out ;-). -- 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/364ffb6b-6dd1-4ba8-9820-bf2c40202d17%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
