DisableRootLogin now runs after package install

Also adjusted the wording of the description
This commit is contained in:
Anders Ingemann 2013-12-28 13:54:15 +01:00
parent 91cff897c8
commit ba1db3b737

View file

@ -3,6 +3,7 @@ from common import phases
from common.tasks.packages import ImagePackages
from common.tasks.host import CheckPackages
from common.tasks.initd import InstallInitScripts
from plugins.packages.tasks import InstallRemotePackages
import os
@ -55,8 +56,9 @@ class AdminUserCredentials(Task):
class DisableRootLogin(Task):
description = 'Disable SSH login for root'
description = 'Disabling SSH login for root'
phase = phases.system_modification
predecessors = [InstallRemotePackages]
def run(self, info):
from subprocess import CalledProcessError