Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinja templates in playbooks not supported? #7

Open
jacobweber opened this issue Aug 2, 2019 · 1 comment
Open

Jinja templates in playbooks not supported? #7

jacobweber opened this issue Aug 2, 2019 · 1 comment

Comments

@jacobweber
Copy link

Does this schema allow you to use templated variables in your YAML? For example, when I validate this yaml file using http://json.schemastore.org/ansible-stable-2.5:

---
- name: test
  yum:
    name: foo
    state: "{{ bar }}"

on the last line, it says Value is not accepted. Valid values: "absent", "installed", "latest", "present", "removed".

@shaded-enmity
Copy link
Owner

Hi @jacobweber thanks for the report, I'll see what I can do after I'm done with #6

I think that adding oneOf: [enum, string] instead of plain enums everywhere should do the trick but I need to verify that.

shaded-enmity added a commit that referenced this issue Jan 3, 2020
- Enum values now allow string values as well to support templating
- Internal modules are not inspected using argspec
- Add support for playbooks (validates under the - task key)
- Add support for nested blocks (preliminary)

Fixes #6 #7 #8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants