redhat-developer / redhat-developer/vscode-yaml
Missing property "key_value" with Ansible Set_Fact
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Right now while using ansible for example you will get an error of MIssing Property "key_value" when using any format of the set_fact module in yaml. You can reproduce this by taking any example from https://docs.ansible.com/ansible/latest/modules/set_fact_module.html for example:
- set_fact:
one_fact: something
other_fact: "{{ local_var * 2 }}"
cacheable: yes
it shouldn't be throwing that error especially since the syntax is correct.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the diagnostic with the set_fact example from the issue and compare it with other valid Ansible YAML forms. Trace which validation or schema check reports the missing key_value property. Done means valid set_fact syntax no longer produces that error, with regression coverage for the reported example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100