From 062f6295c9b29b9ba8f5bc9f7643f61a32328869 Mon Sep 17 00:00:00 2001 From: Komal Thareja Date: Mon, 13 May 2024 14:22:12 -0400 Subject: [PATCH] reorganize the inventory file --- fabric_am/playbooks/inventory_template | 6 +++++- .../playbooks/roles/head_switch_provisioning/tasks/main.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fabric_am/playbooks/inventory_template b/fabric_am/playbooks/inventory_template index d5ac8e4..ec125be 100644 --- a/fabric_am/playbooks/inventory_template +++ b/fabric_am/playbooks/inventory_template @@ -1,7 +1,11 @@ # file: fabric [fabric_p4_switch] -renc-p4.fabric-testbed.net ansible_host=192.168.11.7 ansible_ssh_pass=XXXX ansible_python_interpreter=/nix/var/nix/profiles/RARE/bin/python3.10 +renc-p4.fabric-testbed.net ansible_host=192.168.11.7 +renc-p4.fabric-testbed.net ansible_python_interpreter=/nix/var/nix/profiles/RARE/bin/python3.10 +renc-p4.fabric-testbed.net ansible_ssh_user=rare +renc-p4.fabric-testbed.net ansible_ssh_pass=XXXX + [fabric_site_worker] renc-w1.fabric-testbed.net ansible_host=192.168.11.11 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 7093439..99ea51f 100644 --- a/fabric_am/playbooks/roles/head_switch_provisioning/tasks/main.yml +++ b/fabric_am/playbooks/roles/head_switch_provisioning/tasks/main.yml @@ -28,7 +28,7 @@ - name: Set bootnext with efibootmgr shell: | - echo {{ switch_password }} | sudo -S efibootmgr --bootnext 0004 + echo {{ ansible_ssh_pass }} | sudo -S efibootmgr --bootnext 0004 args: executable: /bin/bash register: efibootmgr_output