con2 / con2/emrichen

Help understanding !If (include file only if var is set)

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.