| ▲ | Fizzadar 3 hours ago | |
This! Been trying to find the best (least worst) solution to this since 2015 when I started pyinfra. Done ast parsing/hacking, done weird context managers instead, tried rewriting statements to context managers. _if is the latest, and I think least worst, option right now. Basically a flaw of the entire model where you write code as if executing a single host which is then executed on many in parallel, forcing the two step diff and deploy that causes this. Funny thing is since v3 this behavior (diff then execute) is even desired with the yes prompt like terraform. | ||