Pulling information from a registered variable

7 views
Skip to first unread message

Jamal Gardiner

unread,
Apr 7, 2020, 9:40:40 AM4/7/20
to Ansible Project
Hey guys.

I'm trying to pull information from this variable that was registered. My question is how would I go about adding conditionals here so that if one item like, 10.200.98.11 has 2 or more msg it'd return a string.

digbomb.jpg



jd mane

unread,
Apr 7, 2020, 10:48:03 AM4/7/20
to ansible...@googlegroups.com
- debug: 
       msg: "{{ digbomb.results.msg.target }}"


This will list all targets. If you want to use one at a time then you can loop it

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/68da35bc-f079-4eff-b43b-b96ce9ccd2d0%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages