| ▲ | mxey 2 hours ago | |||||||
The problem is that it is actually not just Python, branched with “normal if statements”: https://docs.pyinfra.com/en/3.x/deploy-process.html#checking... | ||||||||
| ▲ | bmurphy1976 2 hours ago | parent [-] | |||||||
You can write `if CHECK: do something`. There's nothing preventing that. I've been down this path, implemented my own version of PyInfra many times over the years. I've used Ansible and my own implementations in anger. The _if param is far far far from the worst offender and it's a natural addition, especially when you are laying out a bunch of unrelated checks into something that looks more like a table. | ||||||||
| ||||||||