Mercurial > code > home > repos > infra
comparison tasks.py @ 234:3f7ebff619e3
much faster `inv all` since pyinfra bug was fixed
author | drewp@bigasterisk.com |
---|---|
date | Sun, 29 Oct 2023 21:27:10 -0700 |
parents | 117cd86ffb53 |
children | 3af02e24eaf9 |
comparison
equal
deleted
inserted
replaced
233:83573e3350bd | 234:3f7ebff619e3 |
---|---|
120 'kube.py', | 120 'kube.py', |
121 'sync.py', | 121 'sync.py', |
122 'mail.py', | 122 'mail.py', |
123 'home.py', | 123 'home.py', |
124 ] | 124 ] |
125 # https://github.com/Fizzadar/pyinfra/issues/787 | 125 ctx.run(' '.join([cmd, 'inventory.py'] + configs), pty=True) |
126 #ctx.run(' '.join([cmd, 'inventory.py'] + configs), pty=True) | |
127 for c in configs: | |
128 ctx.run(' '.join([cmd, 'inventory.py', c]), pty=True, echo=True) | |
129 ctx.run('touch /my/proj/infra/ran_all.timestamp') | 126 ctx.run('touch /my/proj/infra/ran_all.timestamp') |
130 | 127 |
131 | 128 |
132 @task | 129 @task |
133 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'): | 130 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'): |