cancel
Showing results for 
Search instead for 
Did you mean: 
chis0
Flight Engineer
Flight Engineer
  • 160 Views

Comprehensive review-cr2

Hello,

I had an issue with this lab where it could not retrieve the content, it would fail with 403 forbidden and write to the error.log because it only retrieved the default (non-vhost) welcome page, with 403.

It wasn't retrieving the vhosts page(s).

Upon investigation I decided to manually restart httpd service on each server and the tests passed, I could also curl servera & serverb for the correct vhost index.

Therefore I want to work out why the handler is not notifying Restart httpd

Can someone run through the lab and see if it works? I destroyed and recreating the VMs are ran into the same issue.

 

Here is a snippet:

chis0_0-1769702358352.png

 

Thanks.

0 Kudos
2 Replies
ARoumiantsev
Flight Engineer
Flight Engineer
  • 146 Views

Hi @chis0 

 There are no issues with the lab here. 

 The typical scenario you described can occur if the playbook doesn't work on the first try, and the problem arises within a task placed after the task that triggers the notification. In this lab, issues can arise with both copy tasks and firewall tasks. 

Best regards

0 Kudos
TravellingKiwi
Flight Engineer
Flight Engineer
  • 133 Views

Check the status of the task "Deploy vhost template".

A notification will only be made on a change. So if the template isn't deployed (i.e. because the file is already there) then the status will be 'ok' instead of 'changed'. 
Notifications do not get made on 'ok'

The most common reason (for me anyway) is when you execute the playbook again. i.e. if the ttask after deploy fails, you fix that, run it again, and the notification then doesn't get made, because the deploy already worked on the failed run (And of course because that run failed, the notification won't get executed in the first run either)

0 Kudos
Join the discussion
You must log in to join this conversation.