comparison 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
comparison
equal deleted inserted replaced
6:aa633eb49c63 7:b6fff51f8676
17 def system(ctx): 17 def system(ctx):
18 ctx.run(cmd + 'inventory.py system.py', pty=True) 18 ctx.run(cmd + 'inventory.py system.py', pty=True)
19 19
20 20
21 @task 21 @task
22 def net(ctx):
23 # workaround for https://github.com/Fizzadar/pyinfra/issues/702
24 ctx.run(cmd + '-vv inventory.py exec -- rm -f /tmp/pyinfra-7ed098bf43cef74d8ab8ea095e4a95c92605c61c', pty=True)
25
26 ctx.run(cmd + '-vv inventory.py net.py --limit slash ', pty=True)
27
28
29 @task
22 def wireguard(ctx): 30 def wireguard(ctx):
23 ctx.run(cmd + 'inventory.py wireguard.py', pty=True) 31 ctx.run(cmd + 'inventory.py wireguard.py', pty=True)
24 32
25 33
26 @task 34 @task