Help needed 🙏! Using ansiblelint/schemas/ansible.json to validate task role #4389
Unanswered
SquirrelDeveloper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I just spent several hours without success to use ansible.json to validate my roles.
I have the following directory:
I am using a react editor, and loads the validation file like that:
For example, my role /agent/roles/install_agent_docker/tasks/main.yml is:
I try every $defs in the file (task, tasks, play, play-role, etc...) and none of them worked.
--> The def is loaded, but the schema obviously is raising errors in the editor, saying the syntax/keywords are incorrect.
Note that is working perfectly for the root playbooks.
Here is the full directory:
https://github.com/SquirrelCorporation/SquirrelServersManager/tree/master/server/src/ansible/00000000-0000-0000-0000-000000000000/agent
Beta Was this translation helpful? Give feedback.
All reactions