-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
RH294 - RHEL9.0-en-3-20240620
-
None
-
False
-
-
False
-
-
-
-
en-US (English)
-
Customer Escalated, Customer Facing, Customer Reported
Please fill in the following information:
URL: | https://rol.redhat.com/rol/app/courses/rh294-9.0/pages/ch06s05 |
Reporter RHNID: | rhn-gps--tmichett |
Section Title: | Lab: Managing Complex Plays and Playbooks
|
Issue description
The grading script incorrectly grades the Apache service because it is set to fail if the status isn't 403 and 403 is unreachable/unavailable. The status code should be 200.
The issue is in the /home/student/.venv/labs/lib/python3.9/site-packages/rh294/ansible/projects-review/verify-apache.yml playbook.
Steps to reproduce:
Follow the lab exercises and run the grade and you will see a failing grade
Workaround:
Edit the playbook and replace with a status code of 200 which is a NORMAL/OK HTTPD server status.
- name: Verify webserver status code hosts: localhost gather_facts: false become: false tasks: - block: - name: Connect to web server uri: url: '{{ url }}' status_code: 200 register: web_test - name: Fail if expected status code is not returned fail: msg: "Apache unavailable" when: web_test.status != 200
Expected result: