You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating checks to validate host and group vars for an Ansible project. I've defined all my checks and assigned them to my groups with the “schema_enforcer_schema_ids” var. Now I've some groups that need to be validated on VLAN configuration and some groups that have the requirement to have the VLANs dict absent.
For the first one, where the VLANs dict should be present and validated, it's an easy one and is working. However, for the second one, I'm struggling with schema-enforcer. Is there a way to instruct schema-enforcer, with Ansible, that an object is optional are shouldn't be present in the host or group vars?
The text was updated successfully, but these errors were encountered:
I'm creating checks to validate host and group vars for an Ansible project. I've defined all my checks and assigned them to my groups with the “schema_enforcer_schema_ids” var. Now I've some groups that need to be validated on VLAN configuration and some groups that have the requirement to have the VLANs dict absent.
For the first one, where the VLANs dict should be present and validated, it's an easy one and is working. However, for the second one, I'm struggling with schema-enforcer. Is there a way to instruct schema-enforcer, with Ansible, that an object is optional are shouldn't be present in the host or group vars?
The text was updated successfully, but these errors were encountered: