Skip to content

How to disable schema validation entirely?  #733

@0x412e4e

Description

@0x412e4e

Summary

Is there a way I could disable the schema validation for all of my playbooks? I couldn't find it in the YAML or Ansible module's settings.

I've been having a problem with vscode-YAML's validation scheme after some update.

Relevant information

I have a simple playbook in which I use import_tasks to run other playbooks.

    - name: Linux tasks
      block:
        - name: tasks1
          import_tasks: tasks1.yml

        - name: tasks2
          import_tasks: tasks2.yml

      when: ansible_system == "Linux"

Because of the YAML schema validation every single task in tasks1.yml or tasks2.yml gives the following error:

Missing property "import_playbook".yaml-schema: ImportPlaybookModel

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions