Hi,
I want to verify the routes getting from remote host to a local variable.
Local variable have the routes in the list. Can you guys please tell me how
to do it with an example? Below is my playbook with the local variable
storing the routes.
- name: Generate the routes and store in file
set_fact:
variable: "[{% for i in range(0,256,16) %}{% for j in
range(0,256,1) %}'120.100.{{ j }}.{{ i }}',{% endfor %}{% endfor %}]"
- name: Dump the routes
debug: var=variable
Thanks,
Madhu
--
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/CAH93M%2Bz%2BTVmMDoLrQsOMkNzUxv5u6579pcmb-ymZk4hu9vmOmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.