right. It was clear, but not correct I am afraid. Apologies.

I meant it the other way around. Checking whether postgres1 can be connected to 
FROM another machine.

Still the hint to the wait module was real value for me, thanks for that. 


> On 06/05/2023 1:07 PM CEST Vladimir Botka <[email protected]> wrote:
> 
>  
> On Mon, 5 Jun 2023 11:53:44 +0200 (CEST)
> dulhaver via Ansible Project <[email protected]> wrote:
> 
> > probably I did not make myself clear enough
> 
> No. Your statement can't be clearer: "to check whether postgres1 has
> a connection via port 5432 to a specific IP address"
> https://groups.google.com/g/ansible-project/c/dkR80nKr25Q/m/rVRrMlTbBAAJ
> 
> > >   - hosts: postgres1
> > >     tasks:
> > >       - wait_for:
> > >           host: <specific IP address>
> > >           port: 5432  
> > 
> > I guess this would check whether 'postgres1' can connect to
> > <specific IP address>:5432. What I wanted to check ... whether
> > *postgres1* would be ready to accept connections from <specific IP
> > address>:5432
> 
> 
> -- 
> Vladimir Botka
> 
> -- 
> 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/20230605130752.2165b095%40gmail.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1251071954.574848.1685965029671%40office.mailbox.org.

Reply via email to