From d4eb5272008636b9d043d056449077c8b7abbba0 Mon Sep 17 00:00:00 2001 From: arista Date: Fri, 2 Aug 2024 17:00:40 +0000 Subject: [PATCH] Added file lookup for ssh-key --- global_vars/global_dc_vars.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/global_vars/global_dc_vars.yml b/global_vars/global_dc_vars.yml index 016e7da5a..d74ea6164 100644 --- a/global_vars/global_dc_vars.yml +++ b/global_vars/global_dc_vars.yml @@ -22,6 +22,7 @@ local_users: privilege: 15 role: network-admin sha512_password: "{{ ansible_password | password_hash('sha512', salt='arista') }}" + ssh_key: "{{ lookup('ansible.builtin.file', '~/.ssh/id_rsa.pub') }}" # AAA aaa_authorization: