From 651c7ca152ec35cf0ff3ced93d9c9318c3b2ae3d Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Wed, 2 Nov 2022 19:25:39 +0800 Subject: [PATCH] perf: playbook specific --- .../automations/change_secret/database/postgresql/main.yml | 6 +++--- .../gather_accounts/database/postgresql/main.yml | 2 +- .../automations/gather_facts/database/postgresql/main.yml | 2 +- apps/assets/automations/ping/database/postgresql/main.yml | 2 +- .../automations/push_account/database/postgresql/main.yml | 2 +- .../automations/verify_account/database/postgresql/main.yml | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/assets/automations/change_secret/database/postgresql/main.yml b/apps/assets/automations/change_secret/database/postgresql/main.yml index 4ef9d65ab..ada11bbd6 100644 --- a/apps/assets/automations/change_secret/database/postgresql/main.yml +++ b/apps/assets/automations/change_secret/database/postgresql/main.yml @@ -10,7 +10,7 @@ login_password: "{{ jms_account.secret }}" login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" - login_db: "{{ jms_asset.category_property.db_name }}" + login_db: "{{ jms_asset.specific.db_name }}" register: db_info - name: Display PostgreSQL version @@ -24,7 +24,7 @@ login_password: "{{ jms_account.secret }}" login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" - db: "{{ jms_asset.category_property.db_name }}" + db: "{{ jms_asset.specific.db_name }}" name: "{{ account.username }}" password: "{{ account.secret }}" when: db_info is succeeded @@ -36,7 +36,7 @@ login_password: "{{ account.secret }}" login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" - db: "{{ jms_asset.category_property.db_name }}" + db: "{{ jms_asset.specific.db_name }}" when: - db_info is succeeded - change_info is succeeded diff --git a/apps/assets/automations/gather_accounts/database/postgresql/main.yml b/apps/assets/automations/gather_accounts/database/postgresql/main.yml index cf0320627..f282b390d 100644 --- a/apps/assets/automations/gather_accounts/database/postgresql/main.yml +++ b/apps/assets/automations/gather_accounts/database/postgresql/main.yml @@ -10,7 +10,7 @@ login_password: "{{ jms_account.secret }}" login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" - login_db: "{{ jms_asset.category_property.db_name }}" + login_db: "{{ jms_asset.specific.db_name }}" filter: "roles" register: db_info diff --git a/apps/assets/automations/gather_facts/database/postgresql/main.yml b/apps/assets/automations/gather_facts/database/postgresql/main.yml index 98183e94c..a3c481b48 100644 --- a/apps/assets/automations/gather_facts/database/postgresql/main.yml +++ b/apps/assets/automations/gather_facts/database/postgresql/main.yml @@ -10,7 +10,7 @@ login_password: "{{ jms_account.secret }}" login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" - login_db: "{{ jms_asset.category_property.db_name }}" + login_db: "{{ jms_asset.specific.db_name }}" register: db_info - name: Define info by set_fact diff --git a/apps/assets/automations/ping/database/postgresql/main.yml b/apps/assets/automations/ping/database/postgresql/main.yml index d76ba3ae3..e97b3946d 100644 --- a/apps/assets/automations/ping/database/postgresql/main.yml +++ b/apps/assets/automations/ping/database/postgresql/main.yml @@ -10,4 +10,4 @@ login_password: "{{ jms_account.secret }}" login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" - login_db: "{{ jms_asset.category_property.db_name }}" + login_db: "{{ jms_asset.specific.db_name }}" diff --git a/apps/assets/automations/push_account/database/postgresql/main.yml b/apps/assets/automations/push_account/database/postgresql/main.yml index 72fbc5e83..febb213c4 100644 --- a/apps/assets/automations/push_account/database/postgresql/main.yml +++ b/apps/assets/automations/push_account/database/postgresql/main.yml @@ -10,7 +10,7 @@ login_password: "{{ jms_account.secret }}" login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" - db: "{{ jms_asset.category_property.db_name }}" + db: "{{ jms_asset.specific.db_name }}" name: "{{ account.username }}" password: "{{ account.secret }}" diff --git a/apps/assets/automations/verify_account/database/postgresql/main.yml b/apps/assets/automations/verify_account/database/postgresql/main.yml index c70364767..08db4d869 100644 --- a/apps/assets/automations/verify_account/database/postgresql/main.yml +++ b/apps/assets/automations/verify_account/database/postgresql/main.yml @@ -10,4 +10,4 @@ login_password: "{{ account.secret }}" login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" - db: "{{ jms_asset.category_property.db_name }}" + db: "{{ jms_asset.specific.db_name }}"