Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-5127

RH294-233: 6.5 Managing Complex Plays and Playbooks LAB - missing index

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • RH294 - RHEL9.0-en-2-20221117
    • RH294
    • None
    • 6
    • en-US (English)

      URL:
      Reporter RHNID:
      Section: -
      Language: en-US (English)||||||||
      Workaround:

      Description: Please consider using FQCN for the import_tasks and include_tasks modules to match the style of the rest of the course book.

      Also, these web servers are all giving 403 Forbidden errors at the end of the exercise, which the grading script doesn't catch:

      $ curl http://servera -I                                                             
      HTTP/1.1 403 Forbidden                                                               
      Date: Fri, 03 Feb 2023 15:50:20 GMT                                                  
      Server: Apache/2.4.51 (Red Hat Enterprise Linux)                                     
      Last-Modified: Mon, 09 Aug 2021 11:43:42 GMT                                         
      ETag: "1715-5c91ee59c9780"                                                           
      Accept-Ranges: bytes                                                                 
      Content-Length: 5909                                                                 
      Connection: close                                                                    
      Content-Type: text/html; charset=UTF-8 
      

      To fix, please add a task to tasks/web_tasks.yml to create an index page on the web servers. Something like the following will do:

      - name: Deploy index page
        ansible.builtin.copy:
          content: This is {{ ansible_facts['fqdn'] }}
          dest: /var/www/html/index.html
      

              shasingh01 Shashi Singh
              zoltanmolnar Zoltan Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: