Fix private/public key order
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2022-04-19 18:12:13 +02:00
parent d60d4691c1
commit abd79df3c3
2 changed files with 4 additions and 2 deletions

View File

@ -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} private_key='$${private_key}'" \
--extra-vars "repo_username=$${repo_username} repo_password=$${repo_password} hv_password=$${hv_password} root_password=$${root_password} public_key='$${public_key}'" \
playbook.yml
environment:
repo_username:
@ -32,6 +32,8 @@ steps:
from_secret: root_password
private_key:
from_secret: ssh_privatekey
public_key:
from_secret: ssh_publickey
volumes:
- name: scratch
path: /scratch

View File

@ -31,7 +31,7 @@
properties:
guestinfo.hostname: "{{ cluster.name | upper }}-{{ (item.ip | checksum)[-5:] | upper }}"
guestinfo.rootpw: "{{ root_password }}"
guestinfo.rootsshkey: "{{ private_key }}"
guestinfo.rootsshkey: "{{ public_key }}"
guestinfo.ntpserver: "{{ network.ntpserver }}"
guestinfo.ipaddress: "{{ item.ip | ansible.utils.ipaddr('address') }}"
guestinfo.prefixlength: "{{ item.ip | ansible.utils.ipaddr('prefix') }}"