I am posting some sample output to simplify things with epcrange=2 and
serverrange=2 and the rest of the values are default
TASK: [Checking to see if new IPs were stored]
********************************
ok: [localhost] => {
"new_ips": {
"changed": false,
"msg": "All items completed",
"results": [
{
"11.11.4.74": "{{ 11.11.4.74 }}", #As we can see new
ips are being formulated
"invocation": {
"module_args": "var=11.11.4.74",
"module_name": "debug"
},
"item": "74",
"verbose_always": true
},
{
"11.11.4.138": "{{ 11.11.4.138 }}", #As we can see
new Ips are being formulated
"invocation": {
"module_args": "var=11.11.4.138",
"module_name": "debug"
},
"item": "138",
"verbose_always": true
}
]
}
}
TASK: [Display the contents of config_file after modification]
****************
ok: [vm1] => {
"my_content.stdout_lines": [
"{",
"\"ServerIP\" : \"hostvars.localhost.new_ips.stdout_lines\" ",
#Only this line in the file is of use to us (w.r.t the code)
"\"ServerIPRange\" : \"128\" ",
"\"Protocol\" : \"UDP\",",
"\"PayloadSize\" : \"22\",",
"\"addGtpTunnel\" : \"yes\",",
"\"ppsLimit\" : \"2000000\",",
"\"testRuntime\" : \"120\",",
"}"
]
}
ok: [vm2] => {
"my_content.stdout_lines": [
"{",
"\"ServerIP\" : \"hostvars.localhost.new_ips.stdout_lines\" ", #nly
this line in the file is of use to us (w.r.t the code)
"\"ServerIPRange\" : \"2\" ",
"\"Protocol\" : \"UDP\",",
"\"PayloadSize\" : \"22\",",
"\"addGtpTunnel\" : \"yes\",",
"\"ppsLimit\" : \"2000000\",",
"\"testRuntime\" : \"120\",",
"}"
]
}
--
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/98b53f93-ea31-46f3-bd3c-922065d143ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.