Hello, can you help understand why I might be getting Connection refused here.
I had previous issues so I destroyed the VMs and recreated from scratch and just typed all the code in at once just to see, and I still cannot get it to run.
Thanks.
@chis0 -
It is very hard to tell, but what the playbook is doing is checking a website and server that is on ServerB. My initial guess is the following things could be happening:
How can you test ... SSH directly to serverB and look at status of HTTPD and other things like the firewall. Use the Firefox browser from workstation and attempt to connect to the site to see if anything is returned or if you get rejected.
Looking at the output above though and knowing you reset and rebuilt everything, I'm guessing there is no webserver installed or configured on ServerB. The main reason is your first play has a single task on ServerB to collect and gather facts and there are no other tasks. If I recall, there should be tasks to install and configure the webserver. Instead, you are jumping to the second play running from workstation to check a website on a server that isn't running.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.