Help understanding !If (include file only if var is set)
Open
- Dominant language
- Python
- Stars
- 110
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
hi - struggling again, asking for help :)
```yaml
systemd:
units: !Concat
- !Include units/ALL.yaml
- !Include units/docker_compose.yaml
- !Include units/mount_docker.yaml
- !Include units/mount_data.yaml
- !If
test: !Op [!Void, ne, !Var etcd_token]
then: !Include units/etcd.yaml
```
i want to check if one of the "parent" files set the variable `etcd_token` - and if so, include the file.. is this doable?
TIA!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.