Mercurial > code > home > repos > infra
comparison tasks.py @ 202:a5399e8b47b6
upgrade some ubuntu
author | drewp@bigasterisk.com |
---|---|
date | Fri, 30 Jun 2023 22:36:53 -0700 |
parents | 522f26c8f691 |
children | 826db3c40fa7 |
comparison
equal
deleted
inserted
replaced
201:2595cf510c5d | 202:a5399e8b47b6 |
---|---|
3 cmd = ''' | 3 cmd = ''' |
4 HOME=/root | 4 HOME=/root |
5 export HOME | 5 export HOME |
6 eval `keychain --quiet --eval id_ecdsa` | 6 eval `keychain --quiet --eval id_ecdsa` |
7 cd /my/proj/infra | 7 cd /my/proj/infra |
8 ~drewp/bin/pdm run pyinfra ''' | 8 pdm run pyinfra ''' |
9 | 9 |
10 def _run(ctx, s): | 10 def _run(ctx, s): |
11 ctx.run(cmd + 'inventory.py %s' % s, pty=True, echo=True) | 11 ctx.run(cmd + 'inventory.py %s' % s, pty=True, echo=True) |
12 | 12 |
13 | 13 |