Mercurial > code > home > repos > infra
comparison tasks.py @ 16:c5784e3d4f8d
mail/postfix setup on prime
author | drewp@bigasterisk.com |
---|---|
date | Sat, 13 Nov 2021 13:51:26 -0800 |
parents | ac4d24d01b68 |
children | 67fc0d4b1859 |
comparison
equal
deleted
inserted
replaced
15:516a91a3ec08 | 16:c5784e3d4f8d |
---|---|
50 def sync(ctx): | 50 def sync(ctx): |
51 ctx.run(cmd + 'inventory.py sync.py ', pty=True) | 51 ctx.run(cmd + 'inventory.py sync.py ', pty=True) |
52 | 52 |
53 | 53 |
54 @task | 54 @task |
55 def mail(ctx): | |
56 ctx.run(cmd + 'inventory.py mail.py -vv', pty=True) | |
57 | |
58 | |
59 @task | |
55 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'): | 60 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'): |
56 ctx.run(cmd + f'{host} -vv fact {fact}', pty=True) | 61 ctx.run(cmd + f'{host} -vv fact {fact}', pty=True) |