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

tasks file named "site.yml" causes vscode validation failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • DO417 - RHAAP2.x NEXT
    • None
    • DO417
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

      Please fill in the following information:

      Issue description

      In the section 8.2 GE "Including and Importing Files" we have students use a tasks file which is called "site.yml". This is questionable in general because the file name "site.yml" is typically used in Ansible projects for a main "playbook of playbooks". In this case though it is actually broken because the VSCode plugin assumes "site.yml" must be a playbook even though it's in a tasks/ directory.

      The result is that the syntax validation shows spurious errors in "tasks/site.yml".

      Steps to reproduce:

      Start the GE and load tasks/site.yml in vscode as suggested in step 2.4. You will see red squiggles indicating errors even though the syntax is correct.

      Expected result:

      In this course it is very important that all Ansible content intended to be seen by students show as correct with the vscode plugin, since it's the only tool they have available to validate syntax.

              rht-eparenti Edgar Parenti
              timothyalvin Timothy Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: