diff 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
line wrap: on
line diff
--- a/tasks.py	Sat Nov 13 12:13:54 2021 -0800
+++ b/tasks.py	Sat Nov 13 13:51:26 2021 -0800
@@ -52,5 +52,10 @@
 
 
 @task
+def mail(ctx):
+    ctx.run(cmd + 'inventory.py mail.py -vv', pty=True)
+
+
+@task
 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'):
     ctx.run(cmd + f'{host} -vv fact {fact}', pty=True)