comparison tasks.py @ 126:fe3ae7c95e65

collect all apt/sources.list into a central template
author drewp@bigasterisk.com
date Wed, 21 Dec 2022 12:36:06 -0800
parents 8012f6095220
children 375515ab60ba
comparison
equal deleted inserted replaced
125:faccf5f8c808 126:fe3ae7c95e65
107 'home.py', 107 'home.py',
108 ] 108 ]
109 # https://github.com/Fizzadar/pyinfra/issues/787 109 # https://github.com/Fizzadar/pyinfra/issues/787
110 #ctx.run(' '.join([cmd, 'inventory.py'] + configs), pty=True) 110 #ctx.run(' '.join([cmd, 'inventory.py'] + configs), pty=True)
111 for c in configs: 111 for c in configs:
112 ctx.run(' '.join([cmd, 'inventory.py', c]), pty=True, warn=True) 112 ctx.run(' '.join([cmd, 'inventory.py', c]), pty=True)
113 ctx.run('touch /my/proj/infra/ran_all.timestamp') 113 ctx.run('touch /my/proj/infra/ran_all.timestamp')
114 114
115 115
116 @task 116 @task
117 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'): 117 def get_fact(ctx, host='dash', fact='server.LinuxDistribution'):