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') }}"