perf: 修改change password linux ansible yaml

This commit is contained in:
feng626
2022-09-14 15:51:04 +08:00
parent a2c006f01b
commit 139540fafe
38 changed files with 210 additions and 348 deletions

View File

@@ -6,7 +6,7 @@ class StrategyChoice(models.TextChoices):
push = 'push', _('Push')
verify = 'verify', _('Verify')
collect = 'collect', _('Collect')
change_auth = 'change_auth', _('Change auth')
change_password = 'change_password', _('Change password')
class SSHKeyStrategy(models.TextChoices):

View File

@@ -10,7 +10,7 @@ class ExecutionManager:
StrategyChoice.push: PushExecutionManager,
StrategyChoice.verify: VerifyExecutionManager,
StrategyChoice.collect: CollectExecutionManager,
StrategyChoice.change_auth: ChangeAuthExecutionManager,
StrategyChoice.change_password: ChangeAuthExecutionManager,
}
def __new__(cls, execution):
@@ -23,7 +23,7 @@ class TaskHandler:
StrategyChoice.push: PushHandler,
StrategyChoice.verify: VerifyHandler,
StrategyChoice.collect: CollectHandler,
StrategyChoice.change_auth: ChangeAuthHandler,
StrategyChoice.change_password: ChangeAuthHandler,
}
def __new__(cls, task, show_step_info):