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-galaxy collection install -r requirements.yml
- | - |
ansible-playbook \ 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 playbook.yml
environment: environment:
repo_username: repo_username:
@ -32,6 +32,8 @@ steps:
from_secret: root_password from_secret: root_password
private_key: private_key:
from_secret: ssh_privatekey from_secret: ssh_privatekey
public_key:
from_secret: ssh_publickey
volumes: volumes:
- name: scratch - name: scratch
path: /scratch path: /scratch

View File

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