From f44d7f9b58b13ea6eb214e16189a1a4a17fd2d71 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Tue, 19 Apr 2022 17:09:07 +0200 Subject: [PATCH] Add missing ssh key reference during deployment --- .drone.yml | 2 +- playbook.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9cf5c11..dc5f2c3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +19,7 @@ steps: - ansible-galaxy collection install -r requirements.yml - | ansible-playbook \ - --extra-vars "repo_username=$${repo_username} repo_password=$${repo_password} hv_password=$${hv_password} root_password=$${root_password}" \ + --extra-vars "repo_username=$${repo_username} repo_password=$${repo_password} hv_password=$${hv_password} root_password=$${root_password} private_key=$${private_key}" \ playbook.yml environment: repo_username: diff --git a/playbook.yml b/playbook.yml index 13beb27..1fcade3 100644 --- a/playbook.yml +++ b/playbook.yml @@ -31,7 +31,7 @@ properties: guestinfo.hostname: "{{ cluster.name | upper }}-{{ (item.ip | checksum)[-5:] | upper }}" guestinfo.rootpw: "{{ root_password }}" - guestinfo.rootsshkey: "foo" + guestinfo.rootsshkey: "{{ private_key }}" guestinfo.ntpserver: "{{ network.ntpserver }}" guestinfo.ipaddress: "{{ item.ip | ansible.utils.ipaddr('address') }}" guestinfo.prefixlength: "{{ item.ip | ansible.utils.ipaddr('prefix') }}"