100 Days Of Devops - Day 19

I believe I have completed the lab, as shown by my curl results. According to the curl output, the web applications are working on the specified server and port. However, the task indicates that it is incorrect. Could this be a bug?

I just tested Day 19 using this solution; I needed to edit the inventory.ini file to point to App Server 2 and set up the sites for “beta” and “games”, and the needed to edit the port and site data in playbook.yaml, but when I ran ansible, it worked beautifully. It should work for you as well.

Dear Mr @rob_kodekloud ,

I don’t want to rely on this GitHub repository for every solution. I want to understand what mistakes I have made and learn from them. In real work, a task can often be completed in multiple ways, not just the method shown in a repository.

Specifically, in my case, based on the curl command, the application on Server 03 appears to be working, but the lab marked it as incorrect. I want to understand why the lab considers it not working, rather than just running someone else’s code

Typically the problem with most tasks is not following the specified requirements closely enough – the port is wrong, the path is wrong, etc. You could certainly do the task manually, although I think that Melki Meriem’s solutions are rather elegant, and you can learn a lot by studying them for that reason (that they use ansible well is also a plus).

To figure out what exactly you did wrong, it’s handy to include the exact problem specification as given, so we now exactly what the grader is going to check for; these tend to be randomized, so I won’t know if your curl invocation is the correct one to check with w/o that information. Again, the problem is typically that you named something wrong or used the wrong path, which annoys the grader. So the problems spec is helpful in figuring these things out.

1 Like