# HG changeset patch # User drewp@bigasterisk.com # Date 1649297949 25200 # Node ID 00d5cd21cade8da0ae42bde6177ade40a8d2ea1a # Parent 8945bf71da227692172a2d649eb9a464c1710ed1 save ran_all.timestamp diff -r 8945bf71da22 -r 00d5cd21cade .hgignore --- a/.hgignore Wed Apr 06 19:08:57 2022 -0700 +++ b/.hgignore Wed Apr 06 19:19:09 2022 -0700 @@ -1,3 +1,4 @@ env pyinfra-debug.log secrets/ +ran_all.timestamp diff -r 8945bf71da22 -r 00d5cd21cade tasks.py --- a/tasks.py Wed Apr 06 19:08:57 2022 -0700 +++ b/tasks.py Wed Apr 06 19:19:09 2022 -0700 @@ -1,6 +1,5 @@ from invoke import task -'🛁 bang(pts/2):/my/proj/infra% sudo inv users ssh system packages net dns wireguard kube sync mail' cmd = ''' HOME=/root @@ -65,6 +64,11 @@ ctx.run(cmd + 'inventory.py mail.py ', pty=True) +@task(pre=[users, ssh, system, packages, net, dns, wireguard, kube, sync, mail]) +def all(ctx): + ctx.run('touch /my/proj/infra/ran_all.timestamp') + + @task def get_fact(ctx, host='dash', fact='server.LinuxDistribution'): ctx.run(cmd + f'{host} -vv fact {fact}', pty=True)