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"