From a92e11ce38a901230f2d782422d5e3c32e564cf4 Mon Sep 17 00:00:00 2001 From: Komal Thareja Date: Tue, 14 May 2024 09:40:35 -0400 Subject: [PATCH] add verify ssh --- fabric_am/config/switch_handler_config.yml | 2 -- fabric_am/handlers/switch_handler.py | 2 -- .../playbooks/roles/head_switch_provisioning/tasks/main.yml | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/fabric_am/config/switch_handler_config.yml b/fabric_am/config/switch_handler_config.yml index 2b06e08..c5a3fbe 100644 --- a/fabric_am/config/switch_handler_config.yml +++ b/fabric_am/config/switch_handler_config.yml @@ -25,8 +25,6 @@ playbooks: location: /etc/fabric/actor/playbooks inventory_location: /etc/fabric/actor/playbooks/inventory - admin_ssh_key: /root/.ssh/id_rsa_nova - admin_user: rare Switch: head_switch_provisioning.yml cleanup: ALL: head_switch_provisioning.yml \ No newline at end of file diff --git a/fabric_am/handlers/switch_handler.py b/fabric_am/handlers/switch_handler.py index 003ee4e..6423502 100644 --- a/fabric_am/handlers/switch_handler.py +++ b/fabric_am/handlers/switch_handler.py @@ -27,7 +27,6 @@ import traceback from typing import Tuple -import paramiko from fabric_cf.actor.core.common.constants import Constants from fabric_cf.actor.core.plugins.handlers.config_token import ConfigToken from fabric_cf.actor.handlers.handler_base import HandlerBase @@ -35,7 +34,6 @@ from jinja2 import Environment from fabric_am.util.am_constants import AmConstants -from fabric_am.util.ansible_helper import AnsibleHelper from fabric_am.util.utils import Utils diff --git a/fabric_am/playbooks/roles/head_switch_provisioning/tasks/main.yml b/fabric_am/playbooks/roles/head_switch_provisioning/tasks/main.yml index a0c44f8..e094c96 100644 --- a/fabric_am/playbooks/roles/head_switch_provisioning/tasks/main.yml +++ b/fabric_am/playbooks/roles/head_switch_provisioning/tasks/main.yml @@ -47,4 +47,4 @@ owner: "{{ ansible_ssh_user }}" group: "{{ ansible_ssh_pass }}" mode: "0600" - when: operation == 'config' \ No newline at end of file + when: operation == 'config' \ No newline at end of file