Mercurial > code > home > repos > infra
comparison tasks.py @ 226:117cd86ffb53
echo cmd
author | drewp@bigasterisk.com |
---|---|
date | Sat, 02 Sep 2023 00:09:41 -0700 |
parents | 826db3c40fa7 |
children | 3f7ebff619e3 |
comparison
equal
deleted
inserted
replaced
225:f056421843da | 226:117cd86ffb53 |
---|---|
123 'home.py', | 123 'home.py', |
124 ] | 124 ] |
125 # https://github.com/Fizzadar/pyinfra/issues/787 | 125 # https://github.com/Fizzadar/pyinfra/issues/787 |
126 #ctx.run(' '.join([cmd, 'inventory.py'] + configs), pty=True) | 126 #ctx.run(' '.join([cmd, 'inventory.py'] + configs), pty=True) |
127 for c in configs: | 127 for c in configs: |
128 ctx.run(' '.join([cmd, 'inventory.py', c]), pty=True) | 128 ctx.run(' '.join([cmd, 'inventory.py', c]), pty=True, echo=True) |
129 ctx.run('touch /my/proj/infra/ran_all.timestamp') | 129 ctx.run('touch /my/proj/infra/ran_all.timestamp') |
130 | 130 |
131 | 131 |
132 @task | 132 @task |
133 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'): | 133 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'): |