- name: 1
shell: 'date'
register: echo0_result
- name: 2
shell: 'echo Current date is - {{ echo0_result.stdout }}'
register: echo1_result
- name: 3
debug: msg='1st result is {{ echo0_result.stdout }}, 2nd is {{ echo1_result.stdout }}'
---
- 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 ;-).