Mercurial > code > home > repos > infra
diff tasks.py @ 60:a949704defd0
new pyinfra
author | drewp@bigasterisk.com |
---|---|
date | Sun, 01 May 2022 23:31:20 -0700 |
parents | fa7a71b8a97f |
children | b46df76991b6 |
line wrap: on
line diff
--- a/tasks.py Sun May 01 23:30:09 2022 -0700 +++ b/tasks.py Sun May 01 23:31:20 2022 -0700 @@ -68,8 +68,24 @@ ctx.run(cmd + 'inventory.py mail.py ', pty=True) -@task(pre=[users, ssh, system, packages, net, dns, wireguard, kube, sync, mail]) +@task def all(ctx): + configs = [ + 'users.py', + 'ssh.py', + 'system.py', + 'packages.py', + 'net.py', + 'dns.py', + 'wireguard.py', + 'kube.py', + 'sync.py', + 'mail.py', + ] + # https://github.com/Fizzadar/pyinfra/issues/787 + #ctx.run(' '.join([cmd, 'inventory.py'] + configs), pty=True) + for c in configs: + ctx.run(' '.join([cmd, 'inventory.py', c]), pty=True, warn=True) ctx.run('touch /my/proj/infra/ran_all.timestamp')