mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-30 13:02:28 +00:00
perf: ansible enabled false (#9670)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
parent
b41880d4f2
commit
0bd674bb9c
@ -1,7 +1,7 @@
|
||||
from orgs.utils import tmp_to_org
|
||||
from common.utils import get_logger
|
||||
from accounts.const import AutomationTypes
|
||||
from accounts.models import GatheredAccount
|
||||
from accounts.const import AutomationTypes, Source
|
||||
from common.utils import get_logger
|
||||
from orgs.utils import tmp_to_org
|
||||
from .filter import GatherAccountsFilter
|
||||
from ..base.manager import AccountBasePlaybookManager
|
||||
|
||||
|
@ -241,7 +241,6 @@ class BasePlaybookManager:
|
||||
print(">>> 开始执行任务\n")
|
||||
else:
|
||||
print("### 没有需要执行的任务\n")
|
||||
return
|
||||
|
||||
self.execution.date_start = timezone.now()
|
||||
for i, runner in enumerate(runners, start=1):
|
||||
|
@ -38,9 +38,21 @@ class DatabaseTypes(BaseType):
|
||||
},
|
||||
cls.REDIS: {
|
||||
'ansible_enabled': False,
|
||||
'ping_enabled': False,
|
||||
'gather_facts_enabled': False,
|
||||
'gather_accounts_enabled': False,
|
||||
'verify_account_enabled': False,
|
||||
'change_secret_enabled': False,
|
||||
'push_account_enabled': False,
|
||||
},
|
||||
cls.CLICKHOUSE: {
|
||||
'ansible_enabled': False,
|
||||
'ping_enabled': False,
|
||||
'gather_facts_enabled': False,
|
||||
'gather_accounts_enabled': False,
|
||||
'verify_account_enabled': False,
|
||||
'change_secret_enabled': False,
|
||||
'push_account_enabled': False,
|
||||
},
|
||||
}
|
||||
return constrains
|
||||
|
@ -63,7 +63,13 @@ class HostTypes(BaseType):
|
||||
},
|
||||
},
|
||||
cls.OTHER_HOST: {
|
||||
'ansible_enabled': False
|
||||
'ansible_enabled': False,
|
||||
'ping_enabled': False,
|
||||
'gather_facts_enabled': False,
|
||||
'gather_accounts_enabled': False,
|
||||
'verify_account_enabled': False,
|
||||
'change_secret_enabled': False,
|
||||
'push_account_enabled': False
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user