--
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 post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5c7f4d91-3427-44fb-a63c-ed42681b8403%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You should be able to use a regular expression to filter hostnames
On Fri, 21 Jun 2019 at 16:54, Pandu jh <jhp...@gmail.com> wrote:
I have a variable that contains short hostname, FQDN and IP addresses.--I need to filter sort hostname/FQDNs and it should store to a variable and also IP addresses should store to an another variable(this am able to do using ipaddr)Please help me to filter hostnames and store to a variable.system: >1.1.1.1myhost
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...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5c7f4d91-3427-44fb-a63c-ed42681b8403%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ip_addr: |
1.12.6.9
myhost
Myhost.example.com
--
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 post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/588c1082-dd11-476f-8506-541ff7e1a587%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
And the error is...?
On Sat, 22 Jun 2019 at 22:06, Pandu jh <jhp...@gmail.com> wrote:
My variable looks below.
ip_addr: |
1.12.6.9
myhost
Myhost.example.com
--
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...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/588c1082-dd11-476f-8506-541ff7e1a587%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.