comparison tasks.py @ 45:ee00f4b5801a

new dns-check task
author drewp@bigasterisk.com
date Mon, 14 Feb 2022 21:53:36 -0800
parents 193cd3b051c6
children 68eeca50ae7f
comparison
equal deleted inserted replaced
44:e3249dd163fc 45:ee00f4b5801a
34 34
35 35
36 @task 36 @task
37 def dns(ctx): 37 def dns(ctx):
38 ctx.run(cmd + 'inventory.py dns.py -v', pty=True) 38 ctx.run(cmd + 'inventory.py dns.py -v', pty=True)
39 ctx.run(cmd + 'inventory.py dns_check.py -v', pty=True)
40
41 @task
42 def dns_check(ctx):
43 ctx.run(cmd + 'inventory.py dns_check.py -v', pty=True)
39 44
40 45
41 @task 46 @task
42 def wireguard(ctx): 47 def wireguard(ctx):
43 ctx.run(cmd + 'inventory.py wireguard.py', pty=True) 48 ctx.run(cmd + 'inventory.py wireguard.py', pty=True)
44 49
45 50
46 @task 51 @task
47 def kube(ctx): 52 def kube(ctx):
48 ctx.run(cmd + 'inventory.py kube.py ', pty=True) 53 ctx.run(cmd + 'inventory.py kube.py -vv ', pty=True)
49 54
50 55
51 @task 56 @task
52 def sync(ctx): 57 def sync(ctx):
53 ctx.run(cmd + 'inventory.py sync.py ', pty=True) 58 ctx.run(cmd + 'inventory.py sync.py ', pty=True)
54 59
55 60
56 @task 61 @task
57 def mail(ctx): 62 def mail(ctx):
58 ctx.run(cmd + 'inventory.py mail.py', pty=True) 63 ctx.run(cmd + 'inventory.py mail.py ', pty=True)
59 64
60 65
61 @task 66 @task
62 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'): 67 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'):
63 ctx.run(cmd + f'{host} -vv fact {fact}', pty=True) 68 ctx.run(cmd + f'{host} -vv fact {fact}', pty=True)