Hi Racke,

thanks for your fast reply and sorry for the misleading problem. My task is 
to find out if an old relay-host with the IP-Address "192.168.110.45" is 
configured on
any of the hosts which are in my hosts-List configured. And therefore I 
thought that I can do it with an 'grep' on every system.

But it seems not to be so easy :(....

Hope, it's now clearer what I wanna configure and someone can help me!?

Regards,
Matthias
 

> Hello Matthias, 
>
> it is unclear what you want to achieve with these ip addresses, but you 
> can get a list of the configuration files with 
> the find module. Than you can use the command module to retrieve IP 
> addresses with Unix grep command. 
>
> Be aware that you likely need regular expressions for both IPv4 and IPv6 
> adresses. Also you probably get false positives. 
>
> Regards 
>
       Racke 

Am Donnerstag, 13. Februar 2020 13:57:51 UTC+1 schrieb Stefan Hornburg 
(Racke):
>
> On 2/13/20 1:34 PM, Matthias Steffens wrote: 
> > 
> > 
> > Am Mittwoch, 12. Februar 2020 23:46:21 UTC+1 schrieb Vladimir Botka: 
> > 
> >     On Wed, 12 Feb 2020 13:00:55 -0800 (PST) 
> >     Matthias Steffens <[email protected] <javascript:>> wrote: 
> > 
> >     > I'm looking for an method by which I can have a look on all of my 
> >     > 'Ansible-Clients' for an specific IP-Address. 
> > 
> >     Try this 
> > 
> >     - hosts: all 
> >       gather_facts: true 
> >       tasks: 
> >         - debug: 
> >             var: ansible_all_ipv4_addresses 
> > 
> >     HTH, 
> > 
> >             -vlado 
> > 
> > 
> > Hi vlado, 
> > 
> > thanks for your reply. But I'm looking for an method to grep for an 
> Ip-address which is set in any configuration file on 
> > every of my  'Ansible-Clients. 
> > 
> > Do you also have an idea how I can configure this with Ansible? 
>
> Hello Matthias, 
>
> it is unclear what you want to achieve with these ip addresses, but you 
> can get a list of the configuration files with 
> the find module. Than you can use the command module to retrieve IP 
> addresses with Unix grep command. 
>
> Be aware that you likely need regular expressions for both IPv4 and IPv6 
> adresses. Also you probably get false positives. 
>
> Regards 
>        Racke 
>
> > 
> > Regards, 
> > 
> > Matthias 
> > 
> > -- 
> > 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] <javascript:> <mailto:
> [email protected] <javascript:>>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/5ea08527-3526-4efe-ac72-0dac1a09ddce%40googlegroups.com
>  
> > <
> https://groups.google.com/d/msgid/ansible-project/5ea08527-3526-4efe-ac72-0dac1a09ddce%40googlegroups.com?utm_medium=email&utm_source=footer>.
>  
>
>
>
> -- 
> Ecommerce and Linux consulting + Perl and web application programming. 
> Debian and Sympa administration. Provisioning with Ansible. 
>
>

-- 
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/1d5fe70c-2b07-4579-953e-4252e4c84c3c%40googlegroups.com.

Reply via email to