As I understart u want something like this?

- 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 }}'



On Friday, June 5, 2015 at 7:39:28 AM UTC+6, Emil Kacperski wrote:
>
> Hello,
>
> If I am running the shell module to run a script and I want to pass a url 
> into the script how would I do this?  Can't use a variable because it's not 
> a dict word?
>
> For example the script is :
>
> echo $url > test.output
>
> The playbook has a task running :
>
> shell echo.sh
>
> If I have a configuration file where the url's are contained, how can I 
> pass it to the script?
>
> Thanks!
>
> Emil
>

-- 
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/63c9f7e7-a4ca-4d18-bf87-7bd458c9a9ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to