perf: ansible enabled false (#9670)

Co-authored-by: feng <1304903146@qq.com>
pull/9673/head
fit2bot 2023-02-21 20:06:45 +08:00 committed by GitHub
parent b41880d4f2
commit 0bd674bb9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 5 deletions

View File

@ -1,7 +1,7 @@
from orgs.utils import tmp_to_org from accounts.const import AutomationTypes
from common.utils import get_logger
from accounts.models import GatheredAccount 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 .filter import GatherAccountsFilter
from ..base.manager import AccountBasePlaybookManager from ..base.manager import AccountBasePlaybookManager

View File

@ -241,7 +241,6 @@ class BasePlaybookManager:
print(">>> 开始执行任务\n") print(">>> 开始执行任务\n")
else: else:
print("### 没有需要执行的任务\n") print("### 没有需要执行的任务\n")
return
self.execution.date_start = timezone.now() self.execution.date_start = timezone.now()
for i, runner in enumerate(runners, start=1): for i, runner in enumerate(runners, start=1):

View File

@ -38,9 +38,21 @@ class DatabaseTypes(BaseType):
}, },
cls.REDIS: { cls.REDIS: {
'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,
}, },
cls.CLICKHOUSE: { cls.CLICKHOUSE: {
'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,
}, },
} }
return constrains return constrains

View File

@ -63,7 +63,13 @@ class HostTypes(BaseType):
}, },
}, },
cls.OTHER_HOST: { 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
}, },
} }