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