From aa606401ea865e3c69f4a6498c6c5b741fce549d Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Wed, 23 Oct 2024 20:26:36 +0200 Subject: [PATCH] Fix variabilization. --- vars/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/main.yml b/vars/main.yml index b2275ef..1be5a78 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -11,8 +11,8 @@ SWIFT_REGIONNAME: "GRA" LINUX_USERNAME: "yohan" # Path of SSH key pair on Ansible controller -PRIVATE_KEY_FILE: "/home/{{ LINUX_USERNAME }}/.ssh/id_rsa" -PUBLIC_KEY_FILE: "/home/{{ LINUX_USERNAME }}/.ssh/id_rsa.pub" +PRIVATE_KEY_FILE: "{{ lookup('env', 'HOME') }}/.ssh/id_rsa" +PUBLIC_KEY_FILE: "{{ lookup('env', 'HOME') }}/.ssh/id_rsa.pub" ANSIBLE_WORKDIR: ".tmp_deploy_ovh"