perf: device ansible (#9396)

Co-authored-by: feng <1304903146@qq.com>
pull/9398/head
fit2bot 2023-02-01 18:20:56 +08:00 committed by GitHub
parent fc34980f20
commit 7b95859015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -31,11 +31,11 @@ class DeviceTypes(BaseType):
def _get_automation_constrains(cls) -> dict:
return {
'*': {
'ansible_enabled': True,
'ansible_enabled': False,
'ansible_config': {
'ansible_connection': 'local',
},
'ping_enabled': True,
'ping_enabled': False,
'gather_facts_enabled': False,
'gather_accounts_enabled': False,
'verify_account_enabled': False,

View File

@ -20,6 +20,8 @@ class WebTypes(BaseType):
def _get_automation_constrains(cls) -> dict:
constrains = {
'*': {
'ansible_enabled': False,
'ping_enabled': False,
'gather_facts_enabled': False,
'verify_account_enabled': False,
'change_secret_enabled': False,