need_install = {} # sha1 to dl, or path to rpm or deb
need_version = {} # utsrelease or sha1
kdb = {}
+
+ remove_old_kernels(ctx)
+
for role, role_config in config.iteritems():
# gather information about this remote
(role_remote,) = ctx.cluster.only(role).remotes.keys()
if role_config.get('kdb') is not None:
kdb[role] = role_config.get('kdb')
- remove_old_kernels(ctx)
-
if need_install:
install_firmware(ctx, need_install)
download_kernel(ctx, need_install)