Hi,
I would like to create a list from parsing a variable that contains
multiple ips separated by a comma.
The variable:
*ips_input: ",1.1.1.1/32,2.2.2.2/32,3.3.3.3/32"*
every item in the list should contain ip/mask.
the expected result:
*ips_input_parsed: [*
* {*
* single_ip: "1.1.1.1/32"*
* }.*
* {*
* single_ip: "2.2.2.2/32"*
* }.*
* {*
* single_ip: "3.3.3.3/32"*
* }.*
*]*
tried many different ways including regex_replace with no success.
please advise.
Thanks,
Morrissey
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/290b5352-d845-4cd1-9724-46d89907d51d%40googlegroups.com.