Mercurial > code > home > repos > infra
diff tasks.py @ 7:b6fff51f8676
net.py setup. May not be safe on bang yet
author | drewp@bigasterisk.com |
---|---|
date | Wed, 10 Nov 2021 09:57:02 -0800 |
parents | 7e8c7de5b490 |
children | 226f3c8419b2 |
line wrap: on
line diff
--- a/tasks.py Wed Nov 10 09:53:49 2021 -0800 +++ b/tasks.py Wed Nov 10 09:57:02 2021 -0800 @@ -19,6 +19,14 @@ @task +def net(ctx): + # workaround for https://github.com/Fizzadar/pyinfra/issues/702 + ctx.run(cmd + '-vv inventory.py exec -- rm -f /tmp/pyinfra-7ed098bf43cef74d8ab8ea095e4a95c92605c61c', pty=True) + + ctx.run(cmd + '-vv inventory.py net.py --limit slash ', pty=True) + + +@task def wireguard(ctx): ctx.run(cmd + 'inventory.py wireguard.py', pty=True)