Is there a way to register two or more variables echoed from shell script?
I want to do something like this:
script.sh
A="hello"
B="world"
echo $A
echo $B
ROLE
shell: "{{ script }} "
register: result
ignore_errors: False
- name: debug
debug: var={{ result1 }} -->of echo 1 --> hello
debug: var={{ result2 }} -->of echo 2 --> world
Is there some other way to do what I'm trying to do there?
thx
--
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/5741465c-adcc-4c3b-85bc-e5e878bdb5ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.