On 2/13/20 3:11 PM, Matthias Steffens wrote:
> Hm, I don't know how such an entry could look like. I'm only looking for this 
> IP-address and if necessary for the FQDN
> as you've
> correctly observed.
> 
> Therefore I thought I can grep for the IP-address in every file on every host 
> with ansible and get an list of hosts
> where it's configured or not....

Seriously? At any rate this is now off topic IMHO.

Regards
         Racke

> 
> Regards,
> Matthias
>  
> 
>     Can you give an example how such an entry looks like in the configuration 
> file?
> 
>     And a relay host can be configured as domain name instead of an IP.
> 
>     Regards
>                Racke
> 
> 
> Am Donnerstag, 13. Februar 2020 14:59:57 UTC+1 schrieb Stefan Hornburg 
> (Racke):
> 
>     On 2/13/20 2:43 PM, Matthias Steffens wrote:
>     > 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!?
> 
>     Can you give an example how such an entry looks like in the configuration 
> file?
> 
>     And a relay host can be configured as domain name instead of an IP.
> 
>     Regards
>                Racke
> 
>     >
>     > 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:>
>     <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>
>     >     
> <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>>
>     >     >
>     >    
>     
> <https://groups.google.com/d/msgid/ansible-project/5ea08527-3526-4efe-ac72-0dac1a09ddce%40googlegroups.com?utm_medium=email&utm_source=footer
>     
> <https://groups.google.com/d/msgid/ansible-project/5ea08527-3526-4efe-ac72-0dac1a09ddce%40googlegroups.com?utm_medium=email&utm_source=footer>
> 
>     >    
>     
> <https://groups.google.com/d/msgid/ansible-project/5ea08527-3526-4efe-ac72-0dac1a09ddce%40googlegroups.com?utm_medium=email&utm_source=footer
>     
> <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] <javascript:> 
> <mailto:[email protected] <javascript:>>.
>     > To view this discussion on the web visit
>     > 
> https://groups.google.com/d/msgid/ansible-project/1d5fe70c-2b07-4579-953e-4252e4c84c3c%40googlegroups.com
>     
> <https://groups.google.com/d/msgid/ansible-project/1d5fe70c-2b07-4579-953e-4252e4c84c3c%40googlegroups.com>
>     >
>     
> <https://groups.google.com/d/msgid/ansible-project/1d5fe70c-2b07-4579-953e-4252e4c84c3c%40googlegroups.com?utm_medium=email&utm_source=footer
>     
> <https://groups.google.com/d/msgid/ansible-project/1d5fe70c-2b07-4579-953e-4252e4c84c3c%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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1261177d-19ba-41dc-8fed-94773659e6d3%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/1261177d-19ba-41dc-8fed-94773659e6d3%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/075340ce-b687-6850-f822-f4bb25956333%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to