cancel
Showing results for 
Search instead for 
Did you mean: 
chis0
Mission Specialist
Mission Specialist
  • 34 Views

Connection refused 3.7 Lab: Managing Variables and Facts

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.

chis0_0-1763641595241.png

Thanks.

0 Kudos
1 Reply
Travis
Moderator
Moderator
  • 22 Views

@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:

  • Apache not installed and webserver not running/enabled
  • Firewall port not open on serverB

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.

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
0 Kudos
Join the discussion
You must log in to join this conversation.